Partager via


StatusCodeResult Constructor

 

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

Overload List

Name Description
System_CAPS_pubmethod StatusCodeResult(HttpStatusCode, ApiController)

Initializes a new instance of the StatusCodeResult class.

System_CAPS_pubmethod StatusCodeResult(HttpStatusCode, HttpRequestMessage)

Initializes a new instance of the StatusCodeResult class.

See Also

StatusCodeResult Class
System.Web.Http.Results Namespace

Return to top

StatusCodeResult Constructor (HttpStatusCode, ApiController)

Initializes a new instance of the StatusCodeResult class.

Syntax

public StatusCodeResult(
    HttpStatusCode statusCode,
    ApiController controller
)
public:
StatusCodeResult(
    HttpStatusCode statusCode,
    ApiController^ controller
)
new : 
        statusCode:HttpStatusCode *
        controller:ApiController -> StatusCodeResult
Public Sub New (
    statusCode As HttpStatusCode,
    controller As ApiController
)

Parameters

Return to top

StatusCodeResult Constructor (HttpStatusCode, HttpRequestMessage)

Initializes a new instance of the StatusCodeResult class.

Syntax

public StatusCodeResult(
    HttpStatusCode statusCode,
    HttpRequestMessage request
)
public:
StatusCodeResult(
    HttpStatusCode statusCode,
    HttpRequestMessage^ request
)
new : 
        statusCode:HttpStatusCode *
        request:HttpRequestMessage -> StatusCodeResult
Public Sub New (
    statusCode As HttpStatusCode,
    request As HttpRequestMessage
)

Parameters

Return to top