See Also: WebHeaderCollection Members
System.Object
System.Collections.Specialized.NameObjectCollectionBase
System.Collections.Specialized.NameValueCollection
System.Net.WebHeaderCollection
All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.
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:
- Accept
- Connection
- Content-Length
- Content-Type
- Date
- Expect
- Host
- If-Modified-Since
- Range
- Referer
- Transfer-Encoding
- UserAgent
Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.x.x, 1.0.5000.0, 2.0.0.0