WebHeaderCollection Methods |
The WebHeaderCollection type exposes the following members.
Name | Description | |
---|---|---|
Add(String) |
Inserts the specified header into the collection.
| |
Add(HttpRequestHeader, String) |
Inserts the specified header with the specified value into the collection.
| |
Add(HttpResponseHeader, String) |
Inserts the specified header with the specified value into the collection.
| |
Add(String, String) |
Inserts a header with the specified name and value into the collection.
| |
Clear |
Removes all headers from the collection.
| |
Equals(Object) | (Inherited from Object.) | |
Get |
Get the value of a particular header in the collection, specified by the
name of the header.
| |
GetEnumerator |
Returns an enumerator that can iterate through the System.Net.WebHeaderCollection instance
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Remove(HttpRequestHeader) |
Removes the specified header from the collection.
| |
Remove(HttpResponseHeader) |
Removes the specified header from the collection.
| |
Remove(String) |
Removes the specified header from the collection.
| |
Set |
Sets the specified header to the specified value.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |