IFilterProvider.GetFilters(ControllerContext, ActionDescriptor) 方法

定义

返回一个枚举器,其中包含 IFilterProvider 服务定位符中的所有实例。

public System.Collections.Generic.IEnumerable<System.Web.Mvc.Filter> GetFilters (System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ActionDescriptor actionDescriptor);
abstract member GetFilters : System.Web.Mvc.ControllerContext * System.Web.Mvc.ActionDescriptor -> seq<System.Web.Mvc.Filter>
Public Function GetFilters (controllerContext As ControllerContext, actionDescriptor As ActionDescriptor) As IEnumerable(Of Filter)

参数

controllerContext
ControllerContext

控制器上下文。

actionDescriptor
ActionDescriptor

操作描述符。

返回

包含服务定位符中所有 IFilterProvider 实例的枚举器。

适用于