Partager via


ControllerInstanceFilterProvider Class

Adds the controller to the FilterProviderCollection instance.

Inheritance Hierarchy

System.Object
  System.Web.Mvc.ControllerInstanceFilterProvider

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

Syntax

'Declaration
Public Class ControllerInstanceFilterProvider _
    Implements IFilterProvider
'Usage
Dim instance As ControllerInstanceFilterProvider
public class ControllerInstanceFilterProvider : IFilterProvider
public ref class ControllerInstanceFilterProvider : IFilterProvider
public class ControllerInstanceFilterProvider implements IFilterProvider

The ControllerInstanceFilterProvider type exposes the following members.

Constructors

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

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetFilters Returns the collection of controller instance filters.
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

The controller class is a filter; it implements all the filter interfaces. A controller instance is a filter for itself.

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

Other Resources

Filtering in ASP.NET MVC