ControllerInstanceFilterProvider Class

Adds the controller to the FilterProviderCollection instance.

Inheritance Hierarchy


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


Public Class ControllerInstanceFilterProvider _
    Implements IFilterProvider
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.


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



  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.)



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


System.Web.Mvc Namespace

Other Resources

Filtering in ASP.NET MVC