FilterAttributeFilterProvider.GetActionAttributes Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a collection of custom action attributes.
protected virtual System.Collections.Generic.IEnumerable<System.Web.Mvc.FilterAttribute> GetActionAttributes (System.Web.Mvc.ControllerContext controllerContext, System.Web.Mvc.ActionDescriptor actionDescriptor);
abstract member GetActionAttributes : System.Web.Mvc.ControllerContext * System.Web.Mvc.ActionDescriptor -> seq<System.Web.Mvc.FilterAttribute>
override this.GetActionAttributes : System.Web.Mvc.ControllerContext * System.Web.Mvc.ActionDescriptor -> seq<System.Web.Mvc.FilterAttribute>
Protected Overridable Function GetActionAttributes (controllerContext As ControllerContext, actionDescriptor As ActionDescriptor) As IEnumerable(Of FilterAttribute)
Parameters
- controllerContext
- ControllerContext
The controller context.
- actionDescriptor
- ActionDescriptor
The action descriptor.
Returns
A collection of custom action attributes.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for