WebHeaderCollection Costruttori

Definizione

Inizializza una nuova istanza della classe WebHeaderCollection.

Overload

WebHeaderCollection()

Inizializza una nuova istanza della classe WebHeaderCollection.

WebHeaderCollection(SerializationInfo, StreamingContext)
Obsoleti.

Inizializza una nuova istanza della classe WebHeaderCollection dalle istanze specificate delle classi SerializationInfo e StreamingContext.

WebHeaderCollection()

Origine:
WebHeaderCollection.cs
Origine:
WebHeaderCollection.cs
Origine:
WebHeaderCollection.cs

Inizializza una nuova istanza della classe WebHeaderCollection.

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

Si applica a

WebHeaderCollection(SerializationInfo, StreamingContext)

Origine:
WebHeaderCollection.cs
Origine:
WebHeaderCollection.cs
Origine:
WebHeaderCollection.cs

Attenzione

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

Inizializza una nuova istanza della classe WebHeaderCollection dalle istanze specificate delle classi SerializationInfo e 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)

Parametri

serializationInfo
SerializationInfo

Oggetto SerializationInfo contenente le informazioni necessarie per serializzare l'oggetto WebHeaderCollection.

streamingContext
StreamingContext

Struttura StreamingContext contenente l'origine del flusso serializzato associato al nuovo WebHeaderCollection.

Attributi

Eccezioni

headerName contiene caratteri non validi.

headerName è un riferimento null o Empty.

Commenti

Questo costruttore implementa l'interfaccia ISerializable per la WebHeaderCollection classe.

Vedi anche

Si applica a