Table of Contents

Class FilterAttribute

Namespace
System.Web.Mvc
Assembly
System.Web.Mvc.dll

Represents the base class for action and result filter attributes.

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, Inherited = true, AllowMultiple = false)]
public abstract class FilterAttribute : Attribute, IMvcFilter
Inheritance
FilterAttribute
Implements
Derived
Inherited Members

Constructors

FilterAttribute()

Initializes a new instance of the FilterAttribute class.

protected FilterAttribute()

Properties

AllowMultiple

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

public bool AllowMultiple { get; }

Property Value

bool

true if more than one instance of the filter attribute can be specified; otherwise, false.

Order

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

public int Order { get; set; }

Property Value

int

The order in which the action filters are executed.