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 ref class ModelStateInvalidFilter : Microsoft::AspNetCore::Mvc::Filters::IActionFilter, Microsoft::AspNetCore::Mvc::Filters::IOrderedFilter
public class ModelStateInvalidFilter : Microsoft.AspNetCore.Mvc.Filters.IActionFilter, Microsoft.AspNetCore.Mvc.Filters.IOrderedFilter
type ModelStateInvalidFilter = class
    interface IActionFilter
    interface IFilterMetadata
    interface IOrderedFilter
Public Class ModelStateInvalidFilter
Implements IActionFilter, IOrderedFilter
Inheritance
ModelStateInvalidFilter
Implements

Constructors

ModelStateInvalidFilter(ApiBehaviorOptions, ILogger)

Initializes a new instance of ModelStateInvalidFilter.

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