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
[<AbstractClassAttribute>]
type MvcFilter =  
    class 
        interface IMvcFilter 
    end
public abstract class MvcFilter implements IMvcFilter

The MvcFilter type exposes the following members.

Constructors

  Name Description
Protected method MvcFilter() Initializes a new instance of the MvcFilter class.
Protected method 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
Public property AllowMultiple Gets a value that indicates whether more than one instance of the filter attribute can be specified.
Public property Order Gets a value that indicates the order in which a filter is applied.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method 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.

See Also

Reference

System.Web.Mvc Namespace