DeserializedHttpResponseExtensionsGetFileName Method DocuWare Platform .NET API
Gets the file name of the HTTP response.

Namespace: DocuWare.Services.Http
Assembly: DocuWare.RestClient (in DocuWare.RestClient.dll) Version: Version 6.6
Syntax

C#
public static string GetFileName(
	this DeserializedHttpResponse<Stream> response
)

Parameters

response
Type: DocuWare.Services.HttpDeserializedHttpResponseStream
The response.

Return Value

Type: String
The file name of the HTTP response.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type DeserializedHttpResponseStream. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions

ExceptionCondition
ArgumentExceptionResponse does not contain file name header.
ArgumentNullExceptionIf response is null.
See Also

Reference