Share via


HttpRequestMessage.Method Property

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

Namespace:  System.Net.Http
Assembly:  System.Net.Http (in System.Net.Http.dll)

Syntax

'Declaration
Public Property Method As HttpMethod 
    Get 
    Set
'Usage
Dim instance As HttpRequestMessage 
Dim value As HttpMethod 

value = instance.Method

instance.Method = value
public HttpMethod Method { get; set; }
public:
property HttpMethod^ Method {
    HttpMethod^ get ();
    void set (HttpMethod^ value);
}
member Method : HttpMethod with get, set
function get Method () : HttpMethod 
function set Method (value : HttpMethod)

Property Value

Type: System.Net.Http.HttpMethod

See Also

Reference

HttpRequestMessage Class

System.Net.Http Namespace