Share via


HttpMethod Constructor

Initializes a new instance of the HttpMethod class with a specific HTTP method.

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

Syntax

'Declaration
Public Sub New ( _
    method As String _
)
'Usage
Dim method As String 

Dim instance As New HttpMethod(method)
public HttpMethod(
    string method
)
public:
HttpMethod(
    String^ method
)
new : 
        method:string -> HttpMethod
public function HttpMethod(
    method : String
)

Parameters

See Also

Reference

HttpMethod Class

System.Net.Http Namespace