WebHeaderCollection Constructors

Definition

Initializes a new instance of the WebHeaderCollection class.

Overloads

WebHeaderCollection()

Initializes a new instance of the WebHeaderCollection class.

WebHeaderCollection(SerializationInfo, StreamingContext)

Initializes a new instance of the WebHeaderCollection class from the specified instances of the SerializationInfo and StreamingContext classes.

WebHeaderCollection()

Initializes a new instance of the WebHeaderCollection class.

public:
 WebHeaderCollection();
public WebHeaderCollection ();
Public Sub New ()

Applies to

WebHeaderCollection(SerializationInfo, StreamingContext)

Initializes a new instance of the WebHeaderCollection class from the specified instances of the SerializationInfo and StreamingContext classes.

protected:
 WebHeaderCollection(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
protected WebHeaderCollection (System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
new System.Net.WebHeaderCollection : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.WebHeaderCollection
Protected Sub New (serializationInfo As SerializationInfo, streamingContext As StreamingContext)

Parameters

serializationInfo
SerializationInfo

A SerializationInfo containing the information required to serialize the WebHeaderCollection.

streamingContext
StreamingContext

A StreamingContext containing the source of the serialized stream associated with the new WebHeaderCollection.

Exceptions

headerName contains invalid characters.

headerName is a null reference or Empty.

Remarks

This constructor implements the ISerializable interface for the WebHeaderCollection class.

See also

Applies to