Bagikan melalui


WebHeaderCollection Konstruktor

Definisi

Menginisialisasi instans baru kelas WebHeaderCollection.

Overload

WebHeaderCollection()

Menginisialisasi instans baru kelas WebHeaderCollection.

WebHeaderCollection(SerializationInfo, StreamingContext)
Kedaluwarsa.

Menginisialisasi instans WebHeaderCollection baru kelas dari instans SerializationInfo dan StreamingContext kelas yang ditentukan.

WebHeaderCollection()

Sumber:
WebHeaderCollection.cs
Sumber:
WebHeaderCollection.cs
Sumber:
WebHeaderCollection.cs

Menginisialisasi instans baru kelas WebHeaderCollection.

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

Berlaku untuk

WebHeaderCollection(SerializationInfo, StreamingContext)

Sumber:
WebHeaderCollection.cs
Sumber:
WebHeaderCollection.cs
Sumber:
WebHeaderCollection.cs

Perhatian

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

Menginisialisasi instans WebHeaderCollection baru kelas dari instans SerializationInfo dan StreamingContext kelas yang ditentukan.

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)

Parameter

serializationInfo
SerializationInfo

Yang SerializationInfo berisi informasi yang diperlukan untuk membuat serialisasi WebHeaderCollection.

streamingContext
StreamingContext

yang StreamingContext berisi sumber aliran berseri yang terkait dengan yang baru WebHeaderCollection.

Atribut

Pengecualian

headerName berisi karakter yang tidak valid.

headerName adalah referensi null atau Empty.

Keterangan

Konstruktor ini mengimplementasikan ISerializable antarmuka untuk WebHeaderCollection kelas .

Lihat juga

Berlaku untuk