WebHeaderCollection Constructors

Definitie

Initialiseert een nieuw exemplaar van de WebHeaderCollection klasse.

Overloads

Name Description
WebHeaderCollection()

Initialiseert een nieuw exemplaar van de WebHeaderCollection klasse.

WebHeaderCollection(SerializationInfo, StreamingContext)
Verouderd.

Initialiseert een nieuw exemplaar van de WebHeaderCollection klasse op basis van de opgegeven exemplaren van de SerializationInfo en StreamingContext klassen.

WebHeaderCollection()

Bron:
WebHeaderCollection.cs
Bron:
WebHeaderCollection.cs
Bron:
WebHeaderCollection.cs
Bron:
WebHeaderCollection.cs
Bron:
WebHeaderCollection.cs

Initialiseert een nieuw exemplaar van de WebHeaderCollection klasse.

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

Van toepassing op

WebHeaderCollection(SerializationInfo, StreamingContext)

Bron:
WebHeaderCollection.cs
Bron:
WebHeaderCollection.cs
Bron:
WebHeaderCollection.cs
Bron:
WebHeaderCollection.cs
Bron:
WebHeaderCollection.cs

Let op

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

Initialiseert een nieuw exemplaar van de WebHeaderCollection klasse op basis van de opgegeven exemplaren van de SerializationInfo en StreamingContext klassen.

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)

Parameters

serializationInfo
SerializationInfo

Een SerializationInfo met de informatie die nodig is voor het serialiseren van de WebHeaderCollection.

streamingContext
StreamingContext

Een StreamingContext met de bron van de geserialiseerde stroom die aan de nieuwe WebHeaderCollectionstroom is gekoppeld.

Kenmerken

Uitzonderingen

De headernaam bevat ongeldige tekens.

De headernaam is een null-verwijzing of Empty.

Opmerkingen

Met deze constructor wordt de ISerializable interface voor de WebHeaderCollection klasse geïmplementeerd.

Zie ook

Van toepassing op