System::Net::WebRequest::CreateHttp メソッド

WebRequest::CreateHttp(String) method

指定された URI を使用して WebRequest クラスの新しいインスタンスを作成します。

static System::SharedPtr<HttpWebRequest> System::Net::WebRequest::CreateHttp(String requestUriString)
パラメーター説明
requestUriStringString新しい WebRequest クラスのインスタンスを作成するために使用される URI。

ReturnValue

新しく作成された WebRequest クラスのインスタンスです。

備考

指定された URI が http:// または https:// 以外のスキームで始まる場合、NotSupportedException がスローされます。

参照

WebRequest::CreateHttp(System::SharedPtr<Uri>) method

指定された URI を使用して WebRequest クラスの新しいインスタンスを作成します。

static System::SharedPtr<HttpWebRequest> System::Net::WebRequest::CreateHttp(System::SharedPtr<Uri> requestUri)
パラメーター説明
requestUriSystem::SharedPtr<Uri>新しい WebRequest クラスのインスタンスを作成するために使用される URI。

ReturnValue

新しく作成された WebRequest クラスのインスタンスです。

備考

指定された URI が http:// または https:// 以外のスキームで始まる場合、NotSupportedException がスローされます。

参照