Partager via


FilterProviderCollection.GetFilters Method

Returns the collection of filter providers.

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

Syntax

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

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

Parameters

Return Value

Type: System.Collections.Generic.IEnumerable<Filter>
The collection of filter providers.

See Also

Reference

FilterProviderCollection Class

System.Web.Mvc Namespace

Other Resources

Filtering in ASP.NET MVC