BadRequestObjectResult Constructors

Definition

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.

Applies to