WebHeaderCollection Methods

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

The WebHeaderCollection type exposes the following members.

  Name Description
Public method Add(String) Inserts the specified header into the collection.
Public method Add(String, String) Inserts a header with the specified name and value into the collection.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method GetValues Gets an array of header values stored in a header.
Public method Static member IsRestricted Tests whether the specified HTTP header can be set for the request.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Remove Removes the specified header from the collection.
Public method Set Sets the specified header to the specified value.
Public method ToByteArray Infrastructure. Converts the WebHeaderCollection to a byte array..
Public method ToString Infrastructure. This method is obsolete. (Overrides Object..::..ToString()()()().)