Gets the values of the HTTP Content-Type response header as an instance of the ContentType object.

Namespace: MonoSoftware.Web
Assembly: MonoSoftware.Web (in MonoSoftware.Web.dll) Version: 1.0.40.661 (1.0.40.661)

Syntax

C#
public static ContentType GetResponseContentType(
	this WebClient client
)
Visual Basic
<ExtensionAttribute> 
Public Shared Function GetResponseContentType ( 
	client As WebClient
) As ContentType
Visual C++
public:
[ExtensionAttribute]
static ContentType^ GetResponseContentType(
	WebClient^ client
)
F#
static member GetResponseContentType : 
        client : WebClient -> ContentType 

Parameters

client
Type: System.Net..::..WebClient

Return Value

Type: ContentType

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type WebClient. 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).

See Also