Share via


FilterAttributeFilterProvider.GetControllerAttributes 方法

定义

获取控制器特性的集合。

protected virtual System.Collections.Generic.IEnumerable<System.Web.Mvc.FilterAttribute> GetControllerAttributes (System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ActionDescriptor actionDescriptor);
abstract member GetControllerAttributes : System.Web.Mvc.ControllerContext * System.Web.Mvc.ActionDescriptor -> seq<System.Web.Mvc.FilterAttribute>
override this.GetControllerAttributes : System.Web.Mvc.ControllerContext * System.Web.Mvc.ActionDescriptor -> seq<System.Web.Mvc.FilterAttribute>
Protected Overridable Function GetControllerAttributes (controllerContext As ControllerContext, actionDescriptor As ActionDescriptor) As IEnumerable(Of FilterAttribute)

参数

controllerContext
ControllerContext

控制器上下文。

actionDescriptor
ActionDescriptor

操作描述符。

返回

控制器特性的集合。

适用于