MvcFilter Class
When implemented in a derived class, provides a metadata class that contains a reference to the implementation of one or more of the filter interfaces, the filter's order, and the filter's scope.
Inheritance Hierarchy
System.Object
System.Web.Mvc.MvcFilter
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Public MustInherit Class MvcFilter _
Implements IMvcFilter
'Usage
Dim instance As MvcFilter
public abstract class MvcFilter : IMvcFilter
public ref class MvcFilter abstract : IMvcFilter
public abstract class MvcFilter implements IMvcFilter
The MvcFilter type exposes the following members.
Constructors
Name | Description | |
---|---|---|
MvcFilter() | Initializes a new instance of the MvcFilter class. | |
MvcFilter(Boolean, Int32) | Initializes a new instance of the MvcFilter class and specifies the order of filters and whether multiple filters are allowed. |
Top
Properties
Name | Description | |
---|---|---|
AllowMultiple | Gets a value that indicates whether more than one instance of the filter attribute can be specified. | |
Order | Gets a value that indicates the order in which a filter is applied. |
Top
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
ToString | (Inherited from Object.) |
Top
Remarks
For more information about ASP.NET MVC filters, see Filtering in ASP.NET MVC.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.