WebHeaderCollection Methods
The WebHeaderCollection type exposes the following members.
Methods
Name | Description | |
---|---|---|
Add(String) |
Adds the specified header to the collection.
|
|
Add(HttpRequestHeader, String) |
Adds the specified request header with
the specified value to the collection.
|
|
Add(HttpResponseHeader, String) |
Adds the specified response header with
the specified value to the collection.
|
|
Add(String, String) |
Adds a header with the specified name and
value to the collection.
|
|
Clear |
Removes all headers from the collection.
|
|
Equals(System.Object) | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
Get(Int32) |
Get the value of the header at the specified index in the collection.
|
|
Get(String) |
Get the value of the header with the specified name in the collection.
|
|
GetEnumerator |
Gets the enumerator used to iterate through the collection.
|
|
GetHashCode | (Inherited from Object.) | |
GetKey |
Get the name of the header at the specified index in the collection.
|
|
GetObjectData |
Populates the specified SerializationInfo with the data needed to serialize
the WebHeaderCollection.
|
|
GetType | (Inherited from Object.) | |
GetValues(Int32) |
Gets an array of header values stored in the specified index position of
the collection.
|
|
GetValues(String) |
Gets an array of header values stored in the specified header.
|
|
IsRestricted(String) |
Determines whether the specified header can be set for the request.
|
|
IsRestricted(String, Boolean) |
Determines whether the specified header can be set for the request or the response.
|
|
MemberwiseClone | (Inherited from Object.) | |
OnDeserialization |
Implements the ISerializable interface and raises the deserialization event
when the deserialization is complete.
|
|
Remove(HttpRequestHeader) |
Removes the specified request header from the collection.
|
|
Remove(HttpResponseHeader) |
Removes the specified response header from the collection.
|
|
Remove(String) |
Removes the specified header from the collection.
|
|
Set(HttpRequestHeader, String) |
Sets the specified request header to the specified value.
|
|
Set(HttpResponseHeader, String) |
Sets the specified response header to the specified value.
|
|
Set(String, String) |
Sets the specified header to the specified value.
|
|
ToByteArray |
Converts the current WebHeaderCollection to an array of Byte.
|
|
ToString |
Returns a String that represents the current
WebHeaderCollection.
|