Condividi tramite


HttpRequestMessage Constructor (HttpMethod, String)

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 String _
)
'Usage
Dim method As HttpMethod 
Dim requestUri As String 

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

Parameters

See Also

Reference

HttpRequestMessage Class

HttpRequestMessage Overload

System.Net.Http Namespace