Share via


FilterAttribute Class

Definition

Represents the base class for action and result filter attributes.

C#
[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public abstract class FilterAttribute : Attribute, System.Web.Mvc.IMvcFilter
Inheritance
FilterAttribute
Derived
Attributes
Implements

Constructors

FilterAttribute()

Initializes a new instance of the FilterAttribute class.

Properties

AllowMultiple

Gets or sets a value that indicates whether more than one instance of the filter attribute can be specified.

Order

Gets or sets the order in which the action filters are executed.

Applies to

Product Versions
ASP.NET MVC 5.2