共用方式為


HttpRequestMessage 建構函式

定義

初始化 HttpRequestMessage 類別的新執行個體。

多載

HttpRequestMessage()

初始化 HttpRequestMessage 類別的新執行個體。

HttpRequestMessage(HttpMethod, String)

使用 HTTP 方法和要求 HttpRequestMessage,初始化 Uri 類別的新執行個體。

HttpRequestMessage(HttpMethod, Uri)

使用 HTTP 方法和要求 HttpRequestMessage,初始化 Uri 類別的新執行個體。

HttpRequestMessage()

來源:
HttpRequestMessage.cs
來源:
HttpRequestMessage.cs
來源:
HttpRequestMessage.cs

初始化 HttpRequestMessage 類別的新執行個體。

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

適用於

HttpRequestMessage(HttpMethod, String)

來源:
HttpRequestMessage.cs
來源:
HttpRequestMessage.cs
來源:
HttpRequestMessage.cs

使用 HTTP 方法和要求 HttpRequestMessage,初始化 Uri 類別的新執行個體。

public:
 HttpRequestMessage(System::Net::Http::HttpMethod ^ method, System::String ^ requestUri);
public HttpRequestMessage (System.Net.Http.HttpMethod method, string requestUri);
public HttpRequestMessage (System.Net.Http.HttpMethod method, string? requestUri);
new System.Net.Http.HttpRequestMessage : System.Net.Http.HttpMethod * string -> System.Net.Http.HttpRequestMessage
Public Sub New (method As HttpMethod, requestUri As String)

參數

method
HttpMethod

HTTP 方法。

requestUri
String

表示要求的 Uri字串。

適用於

HttpRequestMessage(HttpMethod, Uri)

來源:
HttpRequestMessage.cs
來源:
HttpRequestMessage.cs
來源:
HttpRequestMessage.cs

使用 HTTP 方法和要求 HttpRequestMessage,初始化 Uri 類別的新執行個體。

public:
 HttpRequestMessage(System::Net::Http::HttpMethod ^ method, Uri ^ requestUri);
public HttpRequestMessage (System.Net.Http.HttpMethod method, Uri requestUri);
public HttpRequestMessage (System.Net.Http.HttpMethod method, Uri? requestUri);
new System.Net.Http.HttpRequestMessage : System.Net.Http.HttpMethod * Uri -> System.Net.Http.HttpRequestMessage
Public Sub New (method As HttpMethod, requestUri As Uri)

參數

method
HttpMethod

HTTP 方法。

requestUri
Uri

要求的 Uri

適用於