AcceptVerbsAttribute Class

 

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

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

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

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

NameDescription
System_CAPS_pubmethodAcceptVerbsAttribute(String)

Initializes a new instance of the AcceptVerbsAttribute class by using the action method it will respond to.

System_CAPS_pubmethodAcceptVerbsAttribute(String[])

Initializes a new instance of the AcceptVerbsAttribute class by using a list of HTTP methods that the action method will respond to.

NameDescription
System_CAPS_pubpropertyHttpMethods

Gets or sets the list of HTTP methods that the action method will respond to.

System_CAPS_pubpropertyTypeId

(Inherited from Attribute.)

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Attribute.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Attribute.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodIsDefaultAttribute()

(Inherited from Attribute.)

System_CAPS_pubmethodMatch(Object)

(Inherited from Attribute.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

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

Return to top
Show: