Share via


WebHeaderCollection Members

The following tables list the members exposed by the WebHeaderCollection type.

Public Constructors

Name Description
Public Method WebHeaderCollection Creates an empty collection of Web headers.

Public Properties

Name Description
Public Property AllKeys Gets all header names (keys) in the collection.
Public Property Count Gets the number of headers in the collection.
Public Property this Returns the string value for the header.

Public Methods

Name Description
Public Method Add Overloaded. Inserts a header into the collection.
Public Method Equals (Inherited from Object.)
Public Method GetHashCode (Inherited from Object.)
Public Method GetType (Inherited from Object.)
Public Method GetValues Returns the values for the specified header name.
Public Method Static IsRestricted Tests whether the specified HTTP header can be set.
Public Method ReferenceEquals (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 Generates a byte array representation of the headers, that is ready to be sent.
Public Method ToString Generates a string representation of the headers, that is ready to be sent except for it being in String format.

Protected Methods

Name Description
Protected Method Finalize (Inherited from Object.)
Protected Method MemberwiseClone (Inherited from Object.)

See Also

Reference

WebHeaderCollection Class
System.Net Namespace