WebHeaderCollection コンストラクター

定義

WebHeaderCollection クラスの新しいインスタンスを初期化します。

オーバーロード

名前 説明
WebHeaderCollection()

WebHeaderCollection クラスの新しいインスタンスを初期化します。

WebHeaderCollection(SerializationInfo, StreamingContext)
古い.

WebHeaderCollectionクラスとSerializationInfo クラスの指定したインスタンスから、StreamingContext クラスの新しいインスタンスを初期化します。

WebHeaderCollection()

ソース:
WebHeaderCollection.cs
ソース:
WebHeaderCollection.cs
ソース:
WebHeaderCollection.cs
ソース:
WebHeaderCollection.cs
ソース:
WebHeaderCollection.cs

WebHeaderCollection クラスの新しいインスタンスを初期化します。

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

適用対象

WebHeaderCollection(SerializationInfo, StreamingContext)

ソース:
WebHeaderCollection.cs
ソース:
WebHeaderCollection.cs
ソース:
WebHeaderCollection.cs
ソース:
WebHeaderCollection.cs
ソース:
WebHeaderCollection.cs

注意事項

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

WebHeaderCollectionクラスとSerializationInfo クラスの指定したインスタンスから、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);
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)

パラメーター

serializationInfo
SerializationInfo

SerializationInfoのシリアル化に必要な情報を含むWebHeaderCollection

streamingContext
StreamingContext

新しいStreamingContextに関連付けられたシリアル化ストリームのソースを含むWebHeaderCollection

属性

例外

ヘッダー名に無効な文字が含まれています。

ヘッダー名が null 参照または Emptyです。

注釈

このコンストラクターは、ISerializable クラスのWebHeaderCollection インターフェイスを実装します。

こちらもご覧ください

適用対象