C-DEngine 5.105

WebHeaderCollection Methods

The WebHeaderCollection type exposes the following members.

Methods


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