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

System.Net.HttpWebResponse.ContentType Property

Gets the content type of the response. [Edit]

public override string ContentType { get; }

Value

A string that represents the content type of the response data. [Edit]

Exceptions

TypeReason
ObjectDisposedExceptionThe current instance has been disposed. [Edit]

Remarks

This property is read-only.

The HttpWebResponse.ContentType property contains the value of the Content-Type header returned with the response.

Note: This property overrides WebResponse.ContentType .

[Edit]

Requirements

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