Export (0) Print
Expand All

AcceptVerbsAttribute Class

Represents an attribute that specifies which HTTP verbs an action method will respond to.

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

public final class AcceptVerbsAttribute extends ActionMethodSelectorAttribute

The AcceptVerbsAttribute type exposes the following members.

  NameDescription
Public methodAcceptVerbsAttribute(String[])Initializes a new instance of the AcceptVerbsAttribute class by using a list of HTTP verbs that the action method will respond to.
Public methodAcceptVerbsAttribute(HttpVerbs)Initializes a new instance of the AcceptVerbsAttribute class using the HTTP verbs that the action method will respond to.
Top

  NameDescription
Public propertyTypeId (Inherited from Attribute.)
Public propertyVerbsGets or sets the list of HTTP verbs that the action method will respond to.
Top

  NameDescription
Public methodEquals (Inherited from Attribute.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Attribute.)
Public methodGetType (Inherited from Object.)
Public methodIsDefaultAttribute (Inherited from Attribute.)
Public methodIsValidForRequestDetermines whether the specified method information is valid for the specified controller context. (Overrides ActionMethodSelectorAttribute.IsValidForRequest(ControllerContext, MethodInfo).)
Public methodMatch (Inherited from Attribute.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

  NameDescription
Explicit interface implemetationPrivate method_Attribute.GetIDsOfNames (Inherited from Attribute.)
Explicit interface implemetationPrivate method_Attribute.GetTypeInfo (Inherited from Attribute.)
Explicit interface implemetationPrivate method_Attribute.GetTypeInfoCount (Inherited from Attribute.)
Explicit interface implemetationPrivate method_Attribute.Invoke (Inherited from Attribute.)
Top

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.
Show:
© 2014 Microsoft