Share via


ModelStateInvalidFilter Class

Definition

A IActionFilter that responds to invalid ModelState. This filter is added to all types and actions annotated with ApiControllerAttribute. See ApiBehaviorOptions for ways to configure this filter.

public class ModelStateInvalidFilter : Microsoft.AspNetCore.Mvc.Filters.IActionFilter, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter
Inheritance
ModelStateInvalidFilter
Implements

Constructors

Properties

IsReusable System.Object.IsReusable
Order

Gets the order value for determining the order of execution of filters. Filters execute in ascending numeric value of the Order property.

Methods

OnActionExecuted(ActionExecutedContext)

Invoked when an action is executed.

OnActionExecuting(ActionExecutingContext)

Invoked when an action is executing.

Applies to