Редагувати

Поділитися через


HttpRequestMessage Constructors

Definition

Initializes a new instance of the HttpRequestMessage class.

Overloads

HttpRequestMessage()

Initializes a new instance of the HttpRequestMessage class.

HttpRequestMessage(HttpMethod, String)

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

HttpRequestMessage(HttpMethod, Uri)

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

HttpRequestMessage()

Source:
HttpRequestMessage.cs
Source:
HttpRequestMessage.cs
Source:
HttpRequestMessage.cs

Initializes a new instance of the HttpRequestMessage class.

public:
 HttpRequestMessage();
public HttpRequestMessage ();
Public Sub New ()

Applies to

HttpRequestMessage(HttpMethod, String)

Source:
HttpRequestMessage.cs
Source:
HttpRequestMessage.cs
Source:
HttpRequestMessage.cs

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

public:
 HttpRequestMessage(System::Net::Http::HttpMethod ^ method, System::String ^ requestUri);
public HttpRequestMessage (System.Net.Http.HttpMethod method, string requestUri);
public HttpRequestMessage (System.Net.Http.HttpMethod method, string? requestUri);
new System.Net.Http.HttpRequestMessage : System.Net.Http.HttpMethod * string -> System.Net.Http.HttpRequestMessage
Public Sub New (method As HttpMethod, requestUri As String)

Parameters

method
HttpMethod

The HTTP method.

requestUri
String

A string that represents the request Uri.

Applies to

HttpRequestMessage(HttpMethod, Uri)

Source:
HttpRequestMessage.cs
Source:
HttpRequestMessage.cs
Source:
HttpRequestMessage.cs

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

public:
 HttpRequestMessage(System::Net::Http::HttpMethod ^ method, Uri ^ requestUri);
public HttpRequestMessage (System.Net.Http.HttpMethod method, Uri requestUri);
public HttpRequestMessage (System.Net.Http.HttpMethod method, Uri? requestUri);
new System.Net.Http.HttpRequestMessage : System.Net.Http.HttpMethod * Uri -> System.Net.Http.HttpRequestMessage
Public Sub New (method As HttpMethod, requestUri As Uri)

Parameters

method
HttpMethod

The HTTP method.

requestUri
Uri

The Uri to request.

Applies to