FilterAttributeFilterProvider.GetActionAttributes Method
Gets a collection of custom action attributes.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Protected Overridable Function GetActionAttributes ( _
controllerContext As ControllerContext, _
actionDescriptor As ActionDescriptor _
) As IEnumerable(Of FilterAttribute)
'Usage
Dim controllerContext As ControllerContext
Dim actionDescriptor As ActionDescriptor
Dim returnValue As IEnumerable(Of FilterAttribute)
returnValue = Me.GetActionAttributes(controllerContext, _
actionDescriptor)
protected virtual IEnumerable<FilterAttribute> GetActionAttributes(
ControllerContext controllerContext,
ActionDescriptor actionDescriptor
)
protected:
virtual IEnumerable<FilterAttribute^>^ GetActionAttributes(
ControllerContext^ controllerContext,
ActionDescriptor^ actionDescriptor
)
protected function GetActionAttributes(
controllerContext : ControllerContext,
actionDescriptor : ActionDescriptor
) : IEnumerable<FilterAttribute>
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<FilterAttribute>
A collection of custom action attributes.