Class ActionNameSelectorAttribute
Represents an attribute that affects the selection of an action method.
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public abstract class ActionNameSelectorAttribute : Attribute
- Inheritance
-
ActionNameSelectorAttribute
- Derived
- Inherited Members
Constructors
ActionNameSelectorAttribute()
Initializes a new instance of the ActionNameSelectorAttribute class.
protected ActionNameSelectorAttribute()
Methods
IsValidName(ControllerContext, string, MethodInfo)
Determines whether the action name is valid in the specified controller context.
public abstract bool IsValidName(ControllerContext controllerContext, string actionName, MethodInfo methodInfo)
Parameters
controllerContextControllerContextThe controller context.
actionNamestringThe name of the action.
methodInfoMethodInfoInformation about the action method.
Returns
- bool
true if the action name is valid in the specified controller context; otherwise, false.