WebHeaderCollection Methods |
The WebHeaderCollection type exposes the following members.
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.
(Overrides NameValueCollectionAdd(String, String).) | |
Clear |
Removes all headers from the collection.
(Overrides NameValueCollectionClear.) | |
Get(Int32) |
Get the value of the header at the specified index in the collection.
(Overrides NameValueCollectionGet(Int32).) | |
Get(String) |
Get the value of the header with the specified name in the collection.
(Overrides NameValueCollectionGet(String).) | |
GetEnumerator |
Gets the enumerator used to iterate through the collection.
(Overrides NameObjectCollectionBaseGetEnumerator.) | |
GetKey |
Get the name of the header at the specified index in the collection.
(Overrides NameValueCollectionGetKey(Int32).) | |
GetObjectData |
Populates the specified SerializationInfo with the data needed to serialize
the WebHeaderCollection.
(Overrides NameObjectCollectionBaseGetObjectData(SerializationInfo, StreamingContext).) | |
GetValues(Int32) |
Gets an array of header values stored in the specified index position of
the collection.
(Overrides NameValueCollectionGetValues(Int32).) | |
GetValues(String) |
Gets an array of header values stored in the specified header.
(Overrides NameValueCollectionGetValues(String).) | |
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.
| |
OnDeserialization |
Implements the ISerializable interface and raises the deserialization event
when the deserialization is complete.
(Overrides NameObjectCollectionBaseOnDeserialization(Object).) | |
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.
(Overrides NameValueCollectionRemove(String).) | |
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.
(Overrides NameValueCollectionSet(String, String).) | |
ToByteArray |
Converts the current WebHeaderCollection to an array of Byte.
| |
ToString |
Returns a String that represents the current
WebHeaderCollection.
(Overrides ObjectToString.) |