NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

WebHeaders Class

Contains protocol headers associated with a request or response.

Object
   NameObjectCollectionBase
      NameValueCollection
         WebHeaders

[Visual Basic]
Public Class WebHeaders
   Inherits NameValueCollection
[C#]
public class WebHeaders : NameValueCollection
[C++]
public __gc class WebHeaders : public NameValueCollection
[JScript]
public class WebHeaders extends NameValueCollection

Remarks

The WebHeaders class is based on the NameValueCollection class.

The WebHeaders class is generally accessed through TBD or TBD. Some common headers are considered "privileged" and are either exposed directly by the API (such as Content-Type) or protected by the system and cannot be changed.

The privileged headers are:

Transfer-Encoding  
Content-Type Exposed through the API.
Content-Length Exposed through the API.
Connection  
Expect  
Accept  
Referrer  
User-Agent  
Host  
Date  

Requirements

Namespace: System.Net

Assembly: System.net.dll

See Also

WebHeaders Members | System.Net Namespace