Share via


HttpRequestMessage Constructor (HttpMethod, Uri)

Initializes a new instance of the HttpRequestMessage class with an HTTP method and a request Uri.

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

Syntax

'Declaration
Public Sub New ( _
    method As HttpMethod, _
    requestUri As Uri _
)
'Usage
Dim method As HttpMethod 
Dim requestUri As Uri 

Dim instance As New HttpRequestMessage(method, _
    requestUri)
public HttpRequestMessage(
    HttpMethod method,
    Uri requestUri
)
public:
HttpRequestMessage(
    HttpMethod^ method, 
    Uri^ requestUri
)
new : 
        method:HttpMethod * 
        requestUri:Uri -> HttpRequestMessage
public function HttpRequestMessage(
    method : HttpMethod, 
    requestUri : Uri
)

Parameters

See Also

Reference

HttpRequestMessage Class

HttpRequestMessage Overload

System.Net.Http Namespace