Export (0) Print
Expand All

ActionNameAttribute Class

Represents an attribute that is used for the name of an action.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

[AttributeUsageAttribute(AttributeTargets::Method, AllowMultiple = false, Inherited = true)]
public ref class ActionNameAttribute sealed : public ActionNameSelectorAttribute

The ActionNameAttribute type exposes the following members.

Public methodActionNameAttributeInitializes a new instance of the ActionNameAttribute class.

Public propertyNameGets or sets the name of the action.
Public propertyTypeId (Inherited from Attribute.)

Public methodEquals (Inherited from Attribute.)
Public methodGetHashCode (Inherited from Attribute.)
Public methodGetType (Inherited from Object.)
Public methodIsDefaultAttribute (Inherited from Attribute.)
Public methodIsValidNameDetermines whether the action name is valid within the specified controller context. (Overrides ActionNameSelectorAttribute::IsValidName(ControllerContext, String, MethodInfo).)
Public methodMatch (Inherited from Attribute.)
Public methodToString (Inherited from Object.)

For more information about using attributes, see Extending Metadata Using Attributes.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
© 2015 Microsoft