HttpRequestMessage Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.