WebHeaderCollection Konstruktory

Definice

Inicializuje novou instanci WebHeaderCollection třídy.

Přetížení

Name Description
WebHeaderCollection()

Inicializuje novou instanci WebHeaderCollection třídy.

WebHeaderCollection(SerializationInfo, StreamingContext)
Zastaralé.

Inicializuje novou instanci WebHeaderCollection třídy ze zadaných SerializationInfo instancí třídy a StreamingContext třídy.

WebHeaderCollection()

Zdroj:
WebHeaderCollection.cs
Zdroj:
WebHeaderCollection.cs
Zdroj:
WebHeaderCollection.cs
Zdroj:
WebHeaderCollection.cs
Zdroj:
WebHeaderCollection.cs

Inicializuje novou instanci WebHeaderCollection třídy.

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

Platí pro

WebHeaderCollection(SerializationInfo, StreamingContext)

Zdroj:
WebHeaderCollection.cs
Zdroj:
WebHeaderCollection.cs
Zdroj:
WebHeaderCollection.cs
Zdroj:
WebHeaderCollection.cs
Zdroj:
WebHeaderCollection.cs

Upozornění

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

Inicializuje novou instanci WebHeaderCollection třídy ze zadaných SerializationInfo instancí třídy a StreamingContext třídy.

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);
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}")>]
new System.Net.WebHeaderCollection : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.WebHeaderCollection
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

A SerializationInfo obsahující informace potřebné k serializaci WebHeaderCollection.

streamingContext
StreamingContext

A StreamingContext obsahující zdroj serializovaného datového proudu přidruženého k novému WebHeaderCollection.

Atributy

Výjimky

Název záhlaví obsahuje neplatné znaky.

Název záhlaví je odkaz na hodnotu null nebo Empty.

Poznámky

Tento konstruktor implementuje ISerializable rozhraní pro WebHeaderCollection třídu.

Viz také

Platí pro