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
controllerContext
ControllerContextThe controller context.
actionName
stringThe name of the action.
methodInfo
MethodInfoInformation about the action method.
Returns
- bool
true if the action name is valid in the specified controller context; otherwise, false.