Share via

HttpRequestMessage.Method Property


Gets or sets the HTTP method used by the HTTP request message.

 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

Property Value

The HTTP method used by the request message. The default is the GET method.

Applies to