AcceptVerbsAttribute Class

AcceptVerbsAttribute Class

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

This API is not CLS-compliant. 

System.Object
  System.Attribute
    System.Web.Http.AcceptVerbsAttribute

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

[CLSCompliantAttribute(false)]
[AttributeUsageAttribute(AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public sealed class AcceptVerbsAttribute : Attribute, 
	IActionHttpMethodProvider

The AcceptVerbsAttribute type exposes the following members.

  NameDescription
Public methodAcceptVerbsAttributeInitializes a new instance of the AcceptVerbsAttribute class by using a list of HTTP methods that the action method will respond to.
Top

  NameDescription
Public propertyHttpMethodsGets or sets the list of HTTP methods that the action method will respond to.
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 methodMatch (Inherited from Attribute.)
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

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:
© 2016 Microsoft