BadRequestObjectResult Constructors
Definition
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.
Overloads
BadRequestObjectResult(ModelStateDictionary) |
Creates a new BadRequestObjectResult instance. |
BadRequestObjectResult(Object) |
Creates a new BadRequestObjectResult instance. |
BadRequestObjectResult(ModelStateDictionary)
- Source:
- BadRequestObjectResult.cs
- Source:
- BadRequestObjectResult.cs
- Source:
- BadRequestObjectResult.cs
Creates a new BadRequestObjectResult instance.
public:
BadRequestObjectResult(Microsoft::AspNetCore::Mvc::ModelBinding::ModelStateDictionary ^ modelState);
public BadRequestObjectResult (Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelState);
new Microsoft.AspNetCore.Mvc.BadRequestObjectResult : Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary -> Microsoft.AspNetCore.Mvc.BadRequestObjectResult
Public Sub New (modelState As ModelStateDictionary)
Parameters
- modelState
- ModelStateDictionary
ModelStateDictionary containing the validation errors.
Applies to
BadRequestObjectResult(Object)
- Source:
- BadRequestObjectResult.cs
- Source:
- BadRequestObjectResult.cs
- Source:
- BadRequestObjectResult.cs
Creates a new BadRequestObjectResult instance.
public:
BadRequestObjectResult(System::Object ^ error);
public BadRequestObjectResult (object error);
public BadRequestObjectResult (object? error);
new Microsoft.AspNetCore.Mvc.BadRequestObjectResult : obj -> Microsoft.AspNetCore.Mvc.BadRequestObjectResult
Public Sub New (error As Object)
Parameters
- error
- Object
Contains the errors to be returned to the client.