Table of Contents

Class ActionMethodSelectorAttribute

Namespace
System.Web.Mvc
Assembly
System.Web.Mvc.dll

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 ControllerContext

The controller context.

methodInfo MethodInfo

Information about the action method.

Returns

bool

true if the action method selection is valid for the specified controller context; otherwise, false.