Export (0) Print
Expand All

NonActionAttribute Class

Represents an attribute that is used to indicate that a controller method is not an action method.

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

[AttributeUsageAttribute(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public sealed class NonActionAttribute : ActionMethodSelectorAttribute

The NonActionAttribute type exposes the following members.

  NameDescription
Public methodNonActionAttributeInitializes a new instance of the NonActionAttribute class.
Top

  NameDescription
Public propertyTypeId (Inherited from Attribute.)
Top

  NameDescription
Public methodEquals (Inherited from Attribute.)
Public methodGetHashCode (Inherited from Attribute.)
Public methodGetType (Inherited from Object.)
Public methodIsDefaultAttribute (Inherited from Attribute.)
Public methodIsValidForRequestDetermines whether the attribute marks a method that is not an action method by using the specified controller context. (Overrides ActionMethodSelectorAttribute.IsValidForRequest(ControllerContext, MethodInfo).)
Public methodMatch (Inherited from Attribute.)
Public methodToString (Inherited from Object.)
Top

For more information about how to use 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.
Show:
© 2014 Microsoft