Class ActionMethodSelectorAttribute
Represents an attribute that is used to influence the selection of an action method.
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public abstract class ActionMethodSelectorAttribute : Attribute
- Inheritance
-
ActionMethodSelectorAttribute
- Derived
- Inherited Members
Constructors
ActionMethodSelectorAttribute()
Initializes a new instance of the ActionMethodSelectorAttribute class.
protected ActionMethodSelectorAttribute()
Methods
IsValidForRequest(ControllerContext, MethodInfo)
Determines whether the action method selection is valid for the specified controller context.
public abstract bool IsValidForRequest(ControllerContext controllerContext, MethodInfo methodInfo)
Parameters
controllerContext
ControllerContextThe controller context.
methodInfo
MethodInfoInformation about the action method.
Returns
- bool
true if the action method selection is valid for the specified controller context; otherwise, false.