Partager via


WebHeaderCollection Constructeurs

Définition

Initialise une nouvelle instance de la classe WebHeaderCollection.

Surcharges

WebHeaderCollection()

Initialise une nouvelle instance de la classe WebHeaderCollection.

WebHeaderCollection(SerializationInfo, StreamingContext)
Obsolète.

Initialise une nouvelle instance de la classe WebHeaderCollection à partir des instances spécifiées des classes SerializationInfo et StreamingContext.

WebHeaderCollection()

Source:
WebHeaderCollection.cs
Source:
WebHeaderCollection.cs
Source:
WebHeaderCollection.cs

Initialise une nouvelle instance de la classe WebHeaderCollection.

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

S’applique à

WebHeaderCollection(SerializationInfo, StreamingContext)

Source:
WebHeaderCollection.cs
Source:
WebHeaderCollection.cs
Source:
WebHeaderCollection.cs

Attention

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

Initialise une nouvelle instance de la classe WebHeaderCollection à partir des instances spécifiées des classes SerializationInfo et 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)

Paramètres

serializationInfo
SerializationInfo

SerializationInfo contenant les informations requises pour sérialiser WebHeaderCollection.

streamingContext
StreamingContext

StreamingContext contenant la source du flux sérialisé associé au nouveau WebHeaderCollection.

Attributs

Exceptions

headerName contient des caractères non valides.

headerName est une référence null ou le champ Empty.

Remarques

Ce constructeur implémente l’interface ISerializable pour la WebHeaderCollection classe .

Voir aussi

S’applique à