Mono Class Library: System.Net.WebResponse Overview | Members

System.Net.WebResponse.ContentType Property

Gets or sets the media type of the data received. [Edit]

public virtual string ContentType { set; get; }

Value

A string that contains the media type of the response data. [Edit]

Exceptions

TypeReason
NotSupportedExceptionThis property is not implemented in the derived class. [Edit]

Remarks

Note: The media type is typically the MIME encoding of the content.

Operation
As described above.

The System.Net.WebResponse class is abstract and does not provide an implementation for this property. This property throws NotSupportedException.

Note to Inheritors
This property is required to be overridden by classes that inherit from System.Net.WebResponse.

Usage
Use this property to get the media type of the response.

[Edit]

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0