Filter Class

Represents 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.Filter

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Syntax

'Declaration
Public Class Filter
'Usage
Dim instance As Filter
public class Filter
public ref class Filter
public class Filter

The Filter type exposes the following members.

Constructors

  Name Description
Public method Filter Initializes a new instance of the Filter class.

Top

Properties

  Name Description
Public property Instance Gets the instance of this class.
Public property Order Gets the order in which the filter is applied.
Public property Scope Gets the scope ordering of the filter.

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

Fields

  Name Description
Public fieldStatic member DefaultOrder Represents a constant that is used to specify the default ordering of filters.

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