HttpResponseException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.