WebHeaderCollection Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the WebHeaderCollection class.
Overloads
WebHeaderCollection() |
Initializes a new instance of the WebHeaderCollection class. |
WebHeaderCollection(SerializationInfo, StreamingContext) |
Obsolete.
Initializes a new instance of the WebHeaderCollection class from the specified instances of the SerializationInfo and StreamingContext classes. |
WebHeaderCollection()
- Source:
- WebHeaderCollection.cs
- Source:
- WebHeaderCollection.cs
- Source:
- WebHeaderCollection.cs
Initializes a new instance of the WebHeaderCollection class.
public:
WebHeaderCollection();
public WebHeaderCollection ();
Public Sub New ()
Applies to
WebHeaderCollection(SerializationInfo, StreamingContext)
- Source:
- WebHeaderCollection.cs
- Source:
- WebHeaderCollection.cs
- Source:
- WebHeaderCollection.cs
Caution
This API supports obsolete formatter-based serialization. It should not be called or extended by application code.
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);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
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
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
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.
- Attributes
Exceptions
headerName
contains invalid characters.
headerName
is a null reference or Empty.
Remarks
This constructor implements the ISerializable interface for the WebHeaderCollection class.