HttpRequestMessage Constructors
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.
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. |
- 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
.NET 10 ja muud versioonid
Toode | Versioonid |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1 |
UWP | 10.0 |
- 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
.NET 10 ja muud versioonid
Toode | Versioonid |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1 |
UWP | 10.0 |
- 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.
Applies to
.NET 10 ja muud versioonid
Toode | Versioonid |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1 |
UWP | 10.0 |
Toote „.NET“ tagasiside
.NET on avatud lähtekoodiga projekt. Tagasiside andmiseks valige link: