Mono Class Library: System.Net Namespace

System.Net.WebHeaderCollection Class

Contains protocol headers associated with a System.Net.WebRequest or System.Net.WebResponse instance. [Edit]

See Also: WebHeaderCollection Members

System.Object
     System.Collections.Specialized.NameObjectCollectionBase
          System.Collections.Specialized.NameValueCollection
               System.Net.WebHeaderCollection

[System.Runtime.InteropServices.ComVisible(true)]
public class WebHeaderCollection : System.Collections.Specialized.NameValueCollection

Thread Safety

All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.

Remarks

This class is generally accessed through WebRequest.Headers or WebResponse.Headers .

Certain protocol headers are protected and cannot be set directly in a System.Net.WebHeaderCollection instance. These headers can only be set through provided property accessors or by the system. The protected headers are:

[Edit]

Requirements

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