WebHeaderCollection Class |
Namespace: System.Net
[SerializableAttribute] public class WebHeaderCollection
The WebHeaderCollection type exposes the following members.
Name | Description | |
---|---|---|
WebHeaderCollection |
Initializes a new instance of the System.Net.WebHeaderCollection class.
|
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.) |
Name | Description | |
---|---|---|
AllKeys |
Gets all header names (keys) in the collection.
| |
Count |
Gets the number of headers in the collection.
| |
ItemHttpRequestHeader |
Gets or sets the specified request header.
| |
ItemHttpResponseHeader |
Gets or sets the specified response header.
|