共用方式為


HttpResponseException 建構函式

定義

多載

HttpResponseException(HttpResponseMessage)

初始化 HttpResponseException 類別的新執行個體。

HttpResponseException(HttpStatusCode)

初始化 HttpResponseException 類別的新執行個體。

HttpResponseException(HttpResponseMessage)

來源:
HttpResponseException.cs
來源:
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)

來源:
HttpResponseException.cs
來源:
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

回應的狀態碼。

適用於