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

System.Net.WebResponse.Headers Property

Gets the collection of header name/value pairs associated with the current instance. [Edit]

public virtual WebHeaderCollection Headers { get; }

Value

A System.Net.WebHeaderCollection containing the header name/value pairs associated with the current instance. [Edit]

Exceptions

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

Remarks

This property contains a System.Net.WebHeaderCollection instance containing the header information returned in the response from the resource.

Operation
This property is read-only.

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 retrieve the header information received with the response.

[Edit]

Requirements

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