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: StringThe 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
Exception | Condition |
---|---|
ArgumentException | Response does not contain file name header. |
ArgumentNullException | If response is null. |
See Also