Partager via


IFilterProvider.GetFilters Method

Returns an enumerator that contains all the IFilterProvider instances in the service locator.

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

Syntax

'Declaration
Function GetFilters ( _
    controllerContext As ControllerContext, _
    actionDescriptor As ActionDescriptor _
) As IEnumerable(Of Filter)
'Usage
Dim instance As IFilterProvider
Dim controllerContext As ControllerContext
Dim actionDescriptor As ActionDescriptor
Dim returnValue As IEnumerable(Of Filter)

returnValue = instance.GetFilters(controllerContext, _
    actionDescriptor)
IEnumerable<Filter> GetFilters(
    ControllerContext controllerContext,
    ActionDescriptor actionDescriptor
)
IEnumerable<Filter^>^ GetFilters(
    ControllerContext^ controllerContext, 
    ActionDescriptor^ actionDescriptor
)
function GetFilters(
    controllerContext : ControllerContext, 
    actionDescriptor : ActionDescriptor
) : IEnumerable<Filter>

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<Filter>
The enumerator that contains all the IFilterProvider instances in the service locator.

See Also

Reference

IFilterProvider Interface

System.Web.Mvc Namespace

Other Resources

Filtering in ASP.NET MVC