HttpWebRequest コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
HttpWebRequest クラスの新しいインスタンスを初期化します。 これらのコンストラクターは古い形式です。詳細については、「解説」セクションを参照してください。
オーバーロード
| 名前 | 説明 |
|---|---|
| HttpWebRequest() |
古い.
古い.
HttpWebRequest クラスの新しいインスタンスを初期化します。 このコンストラクターは廃止されています。 |
| HttpWebRequest(SerializationInfo, StreamingContext) |
古い.
古い.
古い.
古い.
HttpWebRequestクラスとSerializationInfo クラスの指定したインスタンスから、StreamingContext クラスの新しいインスタンスを初期化します。 このコンストラクターは廃止されています。 |
注釈
Caution
WebRequest、 HttpWebRequest、 ServicePoint、 WebClient は廃止されており、新しい開発には使用しないでください。
HttpClient を代わりに使用します。
HttpWebRequestコンストラクターはどちらも廃止されており、使用しないでください。 WebRequest.CreateHttp メソッドを呼び出して、新しいHttpWebRequest オブジェクトを初期化します。
HttpWebRequest()
注意事項
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
注意事項
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
HttpWebRequest クラスの新しいインスタンスを初期化します。 このコンストラクターは廃止されています。
public:
HttpWebRequest();
[System.Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
[System.Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
public HttpWebRequest();
[System.Obsolete("This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.", true)]
public HttpWebRequest();
Public Sub New ()
- 属性
適用対象
HttpWebRequest(SerializationInfo, StreamingContext)
注意事項
WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.
注意事項
Serialization is obsoleted for this type. https://go.microsoft.com/fwlink/?linkid=14202
注意事項
WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead
注意事項
Serialization is obsoleted for this type. http://go.microsoft.com/fwlink/?linkid=14202
HttpWebRequestクラスとSerializationInfo クラスの指定したインスタンスから、StreamingContext クラスの新しいインスタンスを初期化します。 このコンストラクターは廃止されています。
protected:
HttpWebRequest(System::Runtime::Serialization::SerializationInfo ^ serializationInfo, System::Runtime::Serialization::StreamingContext streamingContext);
[System.Obsolete("WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.", DiagnosticId="SYSLIB0014", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected HttpWebRequest(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
[System.Obsolete("Serialization is obsoleted for this type. https://go.microsoft.com/fwlink/?linkid=14202")]
protected HttpWebRequest(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
[System.Obsolete("WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead", DiagnosticId="SYSLIB0014", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
protected HttpWebRequest(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
[System.Obsolete("Serialization is obsoleted for this type. http://go.microsoft.com/fwlink/?linkid=14202")]
protected HttpWebRequest(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
protected HttpWebRequest(System.Runtime.Serialization.SerializationInfo serializationInfo, System.Runtime.Serialization.StreamingContext streamingContext);
[<System.Obsolete("WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead.", DiagnosticId="SYSLIB0014", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.Net.HttpWebRequest : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.HttpWebRequest
[<System.Obsolete("Serialization is obsoleted for this type. https://go.microsoft.com/fwlink/?linkid=14202")>]
new System.Net.HttpWebRequest : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.HttpWebRequest
[<System.Obsolete("WebRequest, HttpWebRequest, ServicePoint, and WebClient are obsolete. Use HttpClient instead", DiagnosticId="SYSLIB0014", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
new System.Net.HttpWebRequest : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.HttpWebRequest
[<System.Obsolete("Serialization is obsoleted for this type. http://go.microsoft.com/fwlink/?linkid=14202")>]
new System.Net.HttpWebRequest : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.HttpWebRequest
new System.Net.HttpWebRequest : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Net.HttpWebRequest
Protected Sub New (serializationInfo As SerializationInfo, streamingContext As StreamingContext)
パラメーター
- serializationInfo
- SerializationInfo
新しいSerializationInfo オブジェクトをシリアル化するために必要な情報を格納しているHttpWebRequest オブジェクト。
- streamingContext
- StreamingContext
新しいStreamingContext オブジェクトに関連付けられたシリアル化ストリームのソースと宛先を格納するHttpWebRequest オブジェクト。
- 属性
注釈
シリアル化を使用する場合、アプリケーションは完全信頼モードで実行する必要があります。