Comparteix a través de


WebHeaderCollection Constructores

Definición

Inicializa una nueva instancia de la clase WebHeaderCollection.

Sobrecargas

WebHeaderCollection()

Inicializa una nueva instancia de la clase WebHeaderCollection.

WebHeaderCollection(SerializationInfo, StreamingContext)
Obsoletos.

Inicializa una nueva instancia de la clase WebHeaderCollection desde las instancias especificadas de las clases SerializationInfo y StreamingContext.

WebHeaderCollection()

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

Inicializa una nueva instancia de la clase WebHeaderCollection.

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

Se aplica a

WebHeaderCollection(SerializationInfo, StreamingContext)

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

Precaución

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

Inicializa una nueva instancia de la clase WebHeaderCollection desde las instancias especificadas de las clases SerializationInfo y 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)

Parámetros

serializationInfo
SerializationInfo

SerializationInfo que contiene información necesaria para serializar WebHeaderCollection.

streamingContext
StreamingContext

StreamingContext que contiene el origen de la secuencia serializada asociada al nuevo objeto WebHeaderCollection.

Atributos

Excepciones

headerName contiene caracteres no válidos.

headerName es una referencia nula o Empty.

Comentarios

Este constructor implementa la ISerializable interfaz de la WebHeaderCollection clase .

Consulte también

Se aplica a