ControllerBase.ValidationProblem ControllerBase.ValidationProblem ControllerBase.ValidationProblem Method

Definition

Overloads

ValidationProblem(ModelStateDictionary) ValidationProblem(ModelStateDictionary)

Creates an BadRequestObjectResult that produces a Status400BadRequest response.

ValidationProblem() ValidationProblem() ValidationProblem()

Creates an BadRequestObjectResult that produces a Status400BadRequest response with validation errors from ModelState.

ValidationProblem(ValidationProblemDetails) ValidationProblem(ValidationProblemDetails) ValidationProblem(ValidationProblemDetails)

Creates an BadRequestObjectResult that produces a Status400BadRequest response.

ValidationProblem(ModelStateDictionary) ValidationProblem(ModelStateDictionary)

Creates an BadRequestObjectResult that produces a Status400BadRequest response.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ActionResult ValidationProblem (Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary modelStateDictionary);
abstract member ValidationProblem : Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary -> Microsoft.AspNetCore.Mvc.ActionResult
override this.ValidationProblem : Microsoft.AspNetCore.Mvc.ModelBinding.ModelStateDictionary -> Microsoft.AspNetCore.Mvc.ActionResult

Parameters

Returns

ValidationProblem() ValidationProblem() ValidationProblem()

Creates an BadRequestObjectResult that produces a Status400BadRequest response with validation errors from ModelState.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ActionResult ValidationProblem ();
abstract member ValidationProblem : unit -> Microsoft.AspNetCore.Mvc.ActionResult
override this.ValidationProblem : unit -> Microsoft.AspNetCore.Mvc.ActionResult
Public Overridable Function ValidationProblem () As ActionResult

Returns

ValidationProblem(ValidationProblemDetails) ValidationProblem(ValidationProblemDetails) ValidationProblem(ValidationProblemDetails)

Creates an BadRequestObjectResult that produces a Status400BadRequest response.

[Microsoft.AspNetCore.Mvc.NonAction]
public virtual Microsoft.AspNetCore.Mvc.ActionResult ValidationProblem (Microsoft.AspNetCore.Mvc.ValidationProblemDetails descriptor);
abstract member ValidationProblem : Microsoft.AspNetCore.Mvc.ValidationProblemDetails -> Microsoft.AspNetCore.Mvc.ActionResult
override this.ValidationProblem : Microsoft.AspNetCore.Mvc.ValidationProblemDetails -> Microsoft.AspNetCore.Mvc.ActionResult
Public Overridable Function ValidationProblem (descriptor As ValidationProblemDetails) As ActionResult

Parameters

Returns

Applies to