Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

BadRequestResult Constructor

 

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

NameDescription
System_CAPS_pubmethodBadRequestResult(ApiController^)

Initializes a new instance of the BadRequestResult class.

System_CAPS_pubmethodBadRequestResult(HttpRequestMessage^)

Initializes a new instance of the BadRequestResult class.

Return to top

BadRequestResult Constructor (ApiController^)

Initializes a new instance of the BadRequestResult class.

public:
BadRequestResult(
	ApiController^ controller
)

Parameters

controller
Type: System.Web.Http::ApiController^

The controller from which to obtain the dependencies needed for execution.

Return to top

BadRequestResult Constructor (HttpRequestMessage^)

Initializes a new instance of the BadRequestResult class.

public:
BadRequestResult(
	HttpRequestMessage^ request
)

Parameters

request
Type: System.Net.Http::HttpRequestMessage^

The request message which led to this result.

Return to top
Show: