HttpResponseMessage 构造函数

定义

重载

HttpResponseMessage()

初始化 HttpResponseMessage 类的新实例。

HttpResponseMessage(HttpStatusCode)

使用特定的 HttpStatusCode 初始化 HttpResponseMessage 类的新实例。

HttpResponseMessage()

初始化 HttpResponseMessage 类的新实例。

public:
 HttpResponseMessage();
 HttpResponseMessage();
public HttpResponseMessage();
function HttpResponseMessage()
Public Sub New ()

另请参阅

适用于

HttpResponseMessage(HttpStatusCode)

使用特定的 HttpStatusCode 初始化 HttpResponseMessage 类的新实例。

public:
 HttpResponseMessage(HttpStatusCode statusCode);
 HttpResponseMessage(HttpStatusCode const& statusCode);
public HttpResponseMessage(HttpStatusCode statusCode);
function HttpResponseMessage(statusCode)
Public Sub New (statusCode As HttpStatusCode)

参数

statusCode
HttpStatusCode

HTTP 响应的状态代码。

另请参阅

适用于