DeserializedHttpResponseExtensionsGetFileNameSafe 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 GetFileNameSafe(
	this DeserializedHttpResponse<Stream> response
)

Parameters

response
Type: DocuWare.Services.HttpDeserializedHttpResponseStream
The response.

Return Value

Type: String
The file name of the HTTP response. If the response does not contain a file name, null is returned.

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
ArgumentNullExceptionIf response is null.
See Also

Reference