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

System.Net.WebRequest.Headers Property

Gets or sets the collection of header name/value pairs associated with the request.

public virtual WebHeaderCollection Headers { set; get; }

Value

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

Exceptions

TypeReason
NotSupportedExceptionThis property is not implemented in the derived class.

Remarks

This property contains a System.Net.WebHeaderCollection instance containing the header information to send to resources.

Operation
As described above.

This property throws a NotSupportedException exception.

Note to Inheritors
This property must be overridden by classes that inherit from System.Net.WebRequest.

Usage
Use this property to determine the header information of a request.

Requirements

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