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.

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

Inheritance Hierarchy

System.Object
  System.Web.Mvc.MvcFilter

Syntax

public abstract class MvcFilter : IMvcFilter
public ref class MvcFilter abstract : IMvcFilter
[<AbstractClass>]
type MvcFilter = 
    class
        interface IMvcFilter
    end
Public MustInherit Class MvcFilter
    Implements IMvcFilter

Constructors

Name Description
System_CAPS_protmethod MvcFilter()

Initializes a new instance of the MvcFilter class.

System_CAPS_protmethod MvcFilter(Boolean, Int32)

Initializes a new instance of the MvcFilter class and specifies the order of filters and whether multiple filters are allowed.

Properties

Name Description
System_CAPS_pubproperty AllowMultiple

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

System_CAPS_pubproperty Order

Gets a value that indicates the order in which a filter is applied.

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Remarks

For more information about ASP.NET MVC filters, see .Unable to find linked topic '64f865ae-5bf9-4b70-8c68-3ec88f60cd2e'.

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

System.Web.Mvc Namespace

Return to top