共用方式為


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 實例。

適用於