Table of Contents

Class ActionNameSelectorAttribute

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

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 ControllerContext

The controller context.

actionName string

The name of the action.

methodInfo MethodInfo

Information about the action method.

Returns

bool

true if the action name is valid in the specified controller context; otherwise, false.