This documentation is archived and is not being maintained.

WebHeaderCollection.Add Method

Inserts a new header into the collection.

Name Description
WebHeaderCollection.Add (NameValueCollection) Copies the entries in the specified NameValueCollection to the current NameValueCollection.
WebHeaderCollection.Add (String) Inserts the specified header into the collection.

Supported by the .NET Compact Framework.

WebHeaderCollection.Add (HttpRequestHeader, String) Inserts the specified header with the specified value into the collection.
WebHeaderCollection.Add (HttpResponseHeader, String) Inserts the specified header with the specified value into the collection.
WebHeaderCollection.Add (String, String) Inserts a header with the specified name and value into the collection.

Supported by the .NET Compact Framework.

Show: