Dela via


HttpResponseException Constructors

Definition

Overloads

HttpResponseException(HttpResponseMessage)

Initializes a new instance of the HttpResponseException class.

HttpResponseException(HttpStatusCode)

Initializes a new instance of the HttpResponseException class.

HttpResponseException(HttpResponseMessage)

Source:
HttpResponseException.cs
Source:
HttpResponseException.cs

Initializes a new instance of the HttpResponseException class.

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)

Parameters

response
HttpResponseMessage

The response message.

Applies to

HttpResponseException(HttpStatusCode)

Source:
HttpResponseException.cs
Source:
HttpResponseException.cs

Initializes a new instance of the HttpResponseException class.

public HttpResponseException (System.Net.HttpStatusCode statusCode);
new System.Web.Http.HttpResponseException : System.Net.HttpStatusCode -> System.Web.Http.HttpResponseException
Public Sub New (statusCode As HttpStatusCode)

Parameters

statusCode
HttpStatusCode

The status code of the response.

Applies to