Share via


HttpResponseException Constructor ()

Initializes a new instance of the HttpResponseException class.

Namespace:  System.Web.Http
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

'Declaration
Public Sub New ( _
    response As HttpResponseMessage _
)
'Usage
Dim response As HttpResponseMessage

Dim instance As New HttpResponseException(response)
public HttpResponseException(
    HttpResponseMessage response
)
public:
HttpResponseException(
    HttpResponseMessage^ response
)
new : 
        response:HttpResponseMessage -> HttpResponseException
public function HttpResponseException(
    response : HttpResponseMessage
)

Parameters

  • response
    Type: HttpResponseMessage
    The HTTP response to return to the client.

See Also

Reference

HttpResponseException Class

HttpResponseException Overload

System.Web.Http Namespace