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

System.Net.WebClient.Headers Property

Gets or sets a collection of header name/value pairs associated with the request. [Edit]

public WebHeaderCollection Headers { set; get; }

Value

A System.Net.WebHeaderCollection containing header name/value pairs associated with the request or, if this property has not been set or was set to null, a new instance of the System.Net.WebHeaderCollection class. [Edit]

Remarks

Note: This property stores the header information that the current instance sends with a request. This is an unrestricted collection of headers; setting headers that are protected in System.Net.WebRequest descendants like System.Net.HttpWebRequest is allowed.
[Edit]

Requirements

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