Поделиться через


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

Дескриптор действия.

Возвращаемое значение

Коллекция атрибутов контроллера.

Применяется к