Filter Class (System.Web.Mvc)

Switch View :
ScriptFree
.NET Framework Class Library
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

Visual Basic (Declaration)
Public Class Filter
Visual Basic (Usage)
Dim instance As Filter
C#
public class Filter
Visual C++
public ref class Filter
JScript
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 field Static 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