Freigeben über


HttpResponseException Constructor (HttpStatusCode)

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 ( _
    statusCode As HttpStatusCode _
)
'Usage
Dim statusCode As HttpStatusCode

Dim instance As New HttpResponseException(statusCode)
public HttpResponseException(
    HttpStatusCode statusCode
)
public:
HttpResponseException(
    HttpStatusCode statusCode
)
new : 
        statusCode:HttpStatusCode -> HttpResponseException
public function HttpResponseException(
    statusCode : HttpStatusCode
)

Parameters

Remarks

This version of the constructor creates a new HTTP response with the specified status code.

See Also

Reference

HttpResponseException Class

HttpResponseException Overload

System.Web.Http Namespace