次の方法で共有


WebHeaderCollection コンストラクタ (SerializationInfo, StreamingContext)

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

名前空間: System.Net
アセンブリ: System (system.dll 内)

構文

'宣言
Protected Sub New ( _
    serializationInfo As SerializationInfo, _
    streamingContext As StreamingContext _
)
'使用
Dim serializationInfo As SerializationInfo
Dim streamingContext As StreamingContext

Dim instance As New WebHeaderCollection(serializationInfo, streamingContext)
protected WebHeaderCollection (
    SerializationInfo serializationInfo,
    StreamingContext streamingContext
)
protected:
WebHeaderCollection (
    SerializationInfo^ serializationInfo, 
    StreamingContext streamingContext
)
protected WebHeaderCollection (
    SerializationInfo serializationInfo, 
    StreamingContext streamingContext
)
protected function WebHeaderCollection (
    serializationInfo : SerializationInfo, 
    streamingContext : StreamingContext
)

パラメータ

  • streamingContext
    新しい WebHeaderCollection に関連付けられているシリアル化ストリームのソースを格納している StreamingContext

例外

例外の種類 条件

ArgumentException

headerName に無効な文字が含まれています。

ArgumentNullException

headerName が null 参照または Empty です。

解説

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

プラットフォーム

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。

バージョン情報

.NET Framework

サポート対象 : 2.0、1.1、1.0

参照

関連項目

WebHeaderCollection クラス
WebHeaderCollection メンバ
System.Net 名前空間

その他の技術情報

XML シリアル化および SOAP シリアル化