BadRequestResult Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A StatusCodeResult that when executed will produce a Bad Request (400) response.
public ref class BadRequestResult : Microsoft::AspNetCore::Mvc::StatusCodeResult
public class BadRequestResult : Microsoft.AspNetCore.Mvc.StatusCodeResult
[Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(400)]
public class BadRequestResult : Microsoft.AspNetCore.Mvc.StatusCodeResult
type BadRequestResult = class
inherit StatusCodeResult
[<Microsoft.AspNetCore.Mvc.Infrastructure.DefaultStatusCode(400)>]
type BadRequestResult = class
inherit StatusCodeResult
Public Class BadRequestResult
Inherits StatusCodeResult
- Inheritance
- Derived
- Attributes
Bad |
Creates a new BadRequestResult instance. |
Status |
Gets the HTTP status code. (Inherited from StatusCodeResult) |
Execute |
Executes the result operation of the action method synchronously. This method is called by MVC to process the result of an action method. (Inherited from StatusCodeResult) |
Execute |
Executes the result operation of the action method asynchronously. This method is called by MVC to process the result of an action method. The default implementation of this method calls the ExecuteResult(ActionContext) method and returns a completed task. (Inherited from ActionResult) |
IStatus |
(Inherited from StatusCodeResult) |
Product | Versions |
---|---|
ASP.NET Core | 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0 |