HttpRequestMessage.Method 屬性

定義

取得或設定 HTTP 要求訊息使用的 HTTP 方法。

public:
 property System::Net::Http::HttpMethod ^ Method { System::Net::Http::HttpMethod ^ get(); void set(System::Net::Http::HttpMethod ^ value); };
public System.Net.Http.HttpMethod Method { get; set; }
member this.Method : System.Net.Http.HttpMethod with get, set
Public Property Method As HttpMethod

屬性值

要求訊息使用的 HTTP 方法。 預設值為 GET 方法。

適用於