WebHeaderCollection Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy WebHeaderCollection.

Przeciążenia

WebHeaderCollection()

Inicjuje nowe wystąpienie klasy WebHeaderCollection.

WebHeaderCollection(SerializationInfo, StreamingContext)
Przestarzałe.

Inicjuje nowe wystąpienie WebHeaderCollection klasy z określonych wystąpień SerializationInfo klas i StreamingContext .

WebHeaderCollection()

Źródło:
WebHeaderCollection.cs
Źródło:
WebHeaderCollection.cs
Źródło:
WebHeaderCollection.cs

Inicjuje nowe wystąpienie klasy WebHeaderCollection.

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

Dotyczy

WebHeaderCollection(SerializationInfo, StreamingContext)

Źródło:
WebHeaderCollection.cs
Źródło:
WebHeaderCollection.cs
Źródło:
WebHeaderCollection.cs

Przestroga

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

Inicjuje nowe wystąpienie WebHeaderCollection klasy z określonych wystąpień SerializationInfo klas i StreamingContext .

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)

Parametry

serializationInfo
SerializationInfo

Element SerializationInfo zawierający informacje wymagane do serializacji elementu WebHeaderCollection.

streamingContext
StreamingContext

Element StreamingContext zawierający źródło serializowanego strumienia skojarzonego z nowym WebHeaderCollection.

Atrybuty

Wyjątki

headerName zawiera nieprawidłowe znaki.

headerName jest odwołaniem o wartości null lub Empty.

Uwagi

Ten konstruktor implementuje ISerializable interfejs dla WebHeaderCollection klasy .

Zobacz też

Dotyczy