次の方法で共有


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

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

名前空間: 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 WebResponse(serializationInfo, streamingContext)
protected WebResponse (
    SerializationInfo serializationInfo,
    StreamingContext streamingContext
)
protected:
WebResponse (
    SerializationInfo^ serializationInfo, 
    StreamingContext streamingContext
)
protected WebResponse (
    SerializationInfo serializationInfo, 
    StreamingContext streamingContext
)
protected function WebResponse (
    serializationInfo : SerializationInfo, 
    streamingContext : StreamingContext
)

パラメータ

  • serializationInfo
    新しい WebRequest インスタンスをシリアル化するために必要な情報を格納する SerializationInfo クラスのインスタンス。
  • streamingContext
    新しい WebRequest インスタンスに関連付けられているシリアル化ストリームのソースを指定する StreamingContext クラスのインスタンス。

例外

例外の種類 条件

NotSupportedException

コンストラクタが派生クラスでオーバーライドされていないのに、そのコンストラクタへのアクセスが試行されました。

解説

派生クラスによって実装されると、このコンストラクタは WebResponse 派生クラスの 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

参照

関連項目

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