HttpRequestMessage 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 HttpRequestMessage 类的新实例。
重载
HttpRequestMessage() |
初始化 HttpRequestMessage 类的新实例。 |
HttpRequestMessage(HttpMethod, String) |
初始化 HTTP 方法和请求 HttpRequestMessage 的 Uri 类的新实例。 |
HttpRequestMessage(HttpMethod, Uri) |
初始化 HTTP 方法和请求 HttpRequestMessage 的 Uri 类的新实例。 |
HttpRequestMessage()
- Source:
- HttpRequestMessage.cs
- Source:
- HttpRequestMessage.cs
- Source:
- HttpRequestMessage.cs
初始化 HttpRequestMessage 类的新实例。
public:
HttpRequestMessage();
public HttpRequestMessage ();
Public Sub New ()
适用于
HttpRequestMessage(HttpMethod, String)
- Source:
- HttpRequestMessage.cs
- Source:
- HttpRequestMessage.cs
- Source:
- HttpRequestMessage.cs
初始化 HTTP 方法和请求 HttpRequestMessage 的 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)
参数
- method
- HttpMethod
HTTP 方法。
适用于
HttpRequestMessage(HttpMethod, Uri)
- Source:
- HttpRequestMessage.cs
- Source:
- HttpRequestMessage.cs
- Source:
- HttpRequestMessage.cs
初始化 HTTP 方法和请求 HttpRequestMessage 的 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)
参数
- method
- HttpMethod
HTTP 方法。