The WebHeaderCollection type exposes the following members.

Constructors

  NameDescription
Public methodWebHeaderCollection
Creates an empty collection of WEB headers.

Methods

  NameDescription
Public methodAdd(String)
Inserts a new header into the collection.
Public methodAdd(String, String)
Inserts a header with the specified name and value into the collection.
Public methodGetValues
Returns the values for the specified header name.
Public methodStatic memberIsBlankString
Public methodStatic memberIsRestricted
Tests whether the specified HTTP header can be set.
Public methodRemove
Removes the specified header from the collection.
Public methodSet
Sets the specified header to the specified value.
Public methodToByteArray
Generates a byte array representation of the headers, that is ready to be sent.
Public methodToString
Generates a string representation of the headers, that is ready to be sent except for it being in String format.
(Overrides Object..::..ToString()()()().)

Properties

  NameDescription
Public propertyAllKeys
Gets all header names (keys) in the collection.
Public propertyCount
Gets the number of headers in the collection.
Public propertyItem
Returns the string value for the header.

See Also