Click or drag to resize
WebHeaderCollection Class
Contains protocol headers associated with a request or response.
Inheritance Hierarchy
SystemObject
  System.NetWebHeaderCollection

Namespace: System.Net
Assembly: CSharpXamlForHtml5.System.dll (in CSharpXamlForHtml5.System.dll.dll) Version: 1.0.0.0
Syntax
C#
[SerializableAttribute]
public class WebHeaderCollection

The WebHeaderCollection type exposes the following members.

Constructors
  NameDescription
Public methodWebHeaderCollection
Initializes a new instance of the System.Net.WebHeaderCollection class.
Top
Methods
  NameDescription
Public methodAdd(String)
Inserts the specified header into the collection.
Public methodAdd(HttpRequestHeader, String)
Inserts the specified header with the specified value into the collection.
Public methodAdd(HttpResponseHeader, String)
Inserts the specified header with the specified value into the collection.
Public methodAdd(String, String)
Inserts a header with the specified name and value into the collection.
Public methodClear
Removes all headers from the collection.
Public methodEquals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGet
Get the value of a particular header in the collection, specified by the name of the header.
Public methodGetEnumerator
Returns an enumerator that can iterate through the System.Net.WebHeaderCollection instance
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRemove(HttpRequestHeader)
Removes the specified header from the collection.
Public methodRemove(HttpResponseHeader)
Removes the specified header from the collection.
Public methodRemove(String)
Removes the specified header from the collection.
Public methodSet
Sets the specified header to the specified value.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
See Also