HttpRequestMessage.Method HttpRequestMessage.Method HttpRequestMessage.Method HttpRequestMessage.Method HttpRequestMessage.Method Property

Definition

Gets or sets the HTTP method to be performed on the request URI.

public : HttpMethod Method { get; set; }
HttpMethod Method();

void Method(HttpMethod method);
public HttpMethod Method { get; set; }
Public ReadWrite Property Method As HttpMethod
var httpMethod = httpRequestMessage.method;
httpRequestMessage.method = httpMethod;

Property Value

The HTTP method to be performed on the request URI.

Remarks

The standard HTTP methods include CONNECT, DELETE, GET, HEAD, OPTIONS, POST, PUT, and TRACE.