HttpResponseException 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
HttpResponseException(HttpResponseMessage) |
初始化 HttpResponseException 类的新实例。 |
HttpResponseException(HttpStatusCode) |
初始化 HttpResponseException 类的新实例。 |
HttpResponseException(HttpResponseMessage)
- Source:
- HttpResponseException.cs
- Source:
- HttpResponseException.cs
初始化 HttpResponseException 类的新实例。
public HttpResponseException (System.Net.Http.HttpResponseMessage response);
new System.Web.Http.HttpResponseException : System.Net.Http.HttpResponseMessage -> System.Web.Http.HttpResponseException
Public Sub New (response As HttpResponseMessage)
参数
- response
- HttpResponseMessage
响应消息。
适用于
HttpResponseException(HttpStatusCode)
- Source:
- HttpResponseException.cs
- Source:
- HttpResponseException.cs
初始化 HttpResponseException 类的新实例。
public HttpResponseException (System.Net.HttpStatusCode statusCode);
new System.Web.Http.HttpResponseException : System.Net.HttpStatusCode -> System.Web.Http.HttpResponseException
Public Sub New (statusCode As HttpStatusCode)
参数
- statusCode
- HttpStatusCode
响应的状态代码。