GlobalFilterCollection.IFilterProvider.GetFilters Method
This API supports the ASP.NET MVC infrastructure and is not intended to be used directly from your code.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Private Function GetFilters ( _
controllerContext As ControllerContext, _
actionDescriptor As ActionDescriptor _
) As IEnumerable(Of Filter) Implements IFilterProvider.GetFilters
'Usage
Dim instance As GlobalFilterCollection
Dim controllerContext As ControllerContext
Dim actionDescriptor As ActionDescriptor
Dim returnValue As IEnumerable(Of Filter)
returnValue = CType(instance, IFilterProvider).GetFilters(controllerContext, _
actionDescriptor)
IEnumerable<Filter> IFilterProvider.GetFilters(
ControllerContext controllerContext,
ActionDescriptor actionDescriptor
)
private:
virtual IEnumerable<Filter^>^ GetFilters(
ControllerContext^ controllerContext,
ActionDescriptor^ actionDescriptor
) sealed = IFilterProvider::GetFilters
JScript does not support explicit interface implementations.
Parameters
- controllerContext
Type: System.Web.Mvc.ControllerContext
The controller context.
- actionDescriptor
Type: System.Web.Mvc.ActionDescriptor
The action descriptor.
Return Value
Type: System.Collections.Generic.IEnumerable<Filter>
An enumerator that iterates through the global filter collection.
Implements
IFilterProvider.GetFilters(ControllerContext, ActionDescriptor)