RequestHeaders Methods

The RequestHeaders type exposes the following members.

Methods
  NameDescription
Public methodAdd(String)
Inserts the specified header into the collection.
(Inherited from WebHeaderCollection.)
Public methodAdd(NameValueCollection)
Copies the entries in the specified NameValueCollection to the current NameValueCollection.
(Inherited from NameValueCollection.)
Public methodAdd(HttpRequestHeader, String)
Inserts the specified header with the specified value into the collection.
(Inherited from WebHeaderCollection.)
Public methodAdd(HttpResponseHeader, String)
Inserts the specified header with the specified value into the collection.
(Inherited from WebHeaderCollection.)
Public methodAdd(String, String)
Inserts a header with the specified name and value into the collection.
(Inherited from WebHeaderCollection.)
Protected methodAddWithoutValidate
Inserts a header into the collection without checking whether the header is on the restricted header list.
(Inherited from WebHeaderCollection.)
Protected methodBaseAdd
Adds an entry with the specified key and value into the NameObjectCollectionBase instance.
(Inherited from NameObjectCollectionBase.)
Protected methodBaseClear
Removes all entries from the NameObjectCollectionBase instance.
(Inherited from NameObjectCollectionBase.)
Protected methodBaseGet(String)
Gets the value of the first entry with the specified key from the NameObjectCollectionBase instance.
(Inherited from NameObjectCollectionBase.)
Protected methodBaseGet(Int32)
Gets the value of the entry at the specified index of the NameObjectCollectionBase instance.
(Inherited from NameObjectCollectionBase.)
Protected methodBaseGetAllKeys
Returns a String array that contains all the keys in the NameObjectCollectionBase instance.
(Inherited from NameObjectCollectionBase.)
Protected methodBaseGetAllValues
Returns an Object array that contains all the values in the NameObjectCollectionBase instance.
(Inherited from NameObjectCollectionBase.)
Protected methodBaseGetAllValues(Type)
Returns an array of the specified type that contains all the values in the NameObjectCollectionBase instance.
(Inherited from NameObjectCollectionBase.)
Protected methodBaseGetKey
Gets the key of the entry at the specified index of the NameObjectCollectionBase instance.
(Inherited from NameObjectCollectionBase.)
Protected methodBaseHasKeys
Gets a value indicating whether the NameObjectCollectionBase instance contains entries whose keys are not null.
(Inherited from NameObjectCollectionBase.)
Protected methodBaseRemove
Removes the entries with the specified key from the NameObjectCollectionBase instance.
(Inherited from NameObjectCollectionBase.)
Protected methodBaseRemoveAt
Removes the entry at the specified index of the NameObjectCollectionBase instance.
(Inherited from NameObjectCollectionBase.)
Protected methodBaseSet(String, Object)
Sets the value of the first entry with the specified key in the NameObjectCollectionBase instance, if found; otherwise, adds an entry with the specified key and value into the NameObjectCollectionBase instance.
(Inherited from NameObjectCollectionBase.)
Protected methodBaseSet(Int32, Object)
Sets the value of the entry at the specified index of the NameObjectCollectionBase instance.
(Inherited from NameObjectCollectionBase.)
Public methodClear
Removes all headers from the collection.
(Inherited from WebHeaderCollection.)
Public methodCopyTo
Copies the entire NameValueCollection to a compatible one-dimensional Array, starting at the specified index of the target array.
(Inherited from NameValueCollection.)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGet(String)
Get the value of a particular header in the collection, specified by the name of the header.
(Inherited from WebHeaderCollection.)
Public methodGet(Int32)
Get the value of a particular header in the collection, specified by an index into the collection.
(Inherited from WebHeaderCollection.)
Public methodGetEnumerator
Returns an enumerator that can iterate through the WebHeaderCollection instance.
(Inherited from WebHeaderCollection.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetKey
Get the header name at the specified position in the collection.
(Inherited from WebHeaderCollection.)
Public methodGetObjectData
Populates a SerializationInfo with the data needed to serialize the target object.
(Inherited from WebHeaderCollection.)
Public methodGetType
Gets the type of the current instance.
(Inherited from Object.)
Public methodGetValues(String)
Gets an array of header values stored in a header.
(Inherited from WebHeaderCollection.)
Public methodGetValues(Int32)
Gets an array of header values stored in the index position of the header collection.
(Inherited from WebHeaderCollection.)
Public methodHasKeys
Gets a value indicating whether the NameValueCollection contains keys that are not null.
(Inherited from NameValueCollection.)
Protected methodInvalidateCachedArrays
Resets the cached arrays of the collection to null.
(Inherited from NameValueCollection.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodOnDeserialization
Implements the ISerializable interface and raises the deserialization event when the deserialization is complete.
(Inherited from WebHeaderCollection.)
Public methodRemove(HttpRequestHeader)
Removes the specified header from the collection.
(Inherited from WebHeaderCollection.)
Public methodRemove(HttpResponseHeader)
Removes the specified header from the collection.
(Inherited from WebHeaderCollection.)
Public methodRemove(String)
Removes the specified header from the collection.
(Inherited from WebHeaderCollection.)
Public methodSet(HttpRequestHeader, String)
Sets the specified header to the specified value.
(Inherited from WebHeaderCollection.)
Public methodSet(HttpResponseHeader, String)
Sets the specified header to the specified value.
(Inherited from WebHeaderCollection.)
Public methodSet(String, String)
Sets the specified header to the specified value.
(Inherited from WebHeaderCollection.)
Public methodToByteArray
Converts the WebHeaderCollection to a byte array..
(Inherited from WebHeaderCollection.)
Public methodToString
Obsolete.
(Inherited from WebHeaderCollection.)
See Also