BadRequestResult Constructor
Namespace: System.Web.Http.Results
Assembly: System.Web.Http (in System.Web.Http.dll)
Overload List
Name | Description | |
---|---|---|
BadRequestResult(ApiController) | Initializes a new instance of the BadRequestResult class. |
|
BadRequestResult(HttpRequestMessage) | Initializes a new instance of the BadRequestResult class. |
See Also
BadRequestResult Class
System.Web.Http.Results Namespace
Return to top
BadRequestResult Constructor (ApiController)
Initializes a new instance of the BadRequestResult class.
Syntax
public BadRequestResult(
ApiController controller
)
public:
BadRequestResult(
ApiController^ controller
)
new :
controller:ApiController -> BadRequestResult
Public Sub New (
controller As ApiController
)
Parameters
controller
Type: System.Web.Http.ApiControllerThe controller from which to obtain the dependencies needed for execution.
Return to top
BadRequestResult Constructor (HttpRequestMessage)
Initializes a new instance of the BadRequestResult class.
Syntax
public BadRequestResult(
HttpRequestMessage request
)
public:
BadRequestResult(
HttpRequestMessage^ request
)
new :
request:HttpRequestMessage -> BadRequestResult
Public Sub New (
request As HttpRequestMessage
)
Parameters
request
Type: System.Net.Http.HttpRequestMessageThe request message which led to this result.
Return to top