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)


[<Sealed>]
[<AttributeUsageAttribute(AttributeTargets.Method, AllowMultiple = false,
    Inherited = true)>]
type AcceptVerbsAttribute = 
    class
        inherit ActionMethodSelectorAttribute
    end

NameDescription
System_CAPS_pubmethodAcceptVerbsAttribute(HttpVerbs)

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

System_CAPS_pubmethodAcceptVerbsAttribute(String[])

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

NameDescription
System_CAPS_pubpropertyTypeId

(Inherited from Attribute.)

System_CAPS_pubpropertyVerbs

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

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_pubmethodIsValidForRequest(ControllerContext, MethodInfo)

Determines whether the specified method information is valid for the specified controller context.(Overrides ActionMethodSelectorAttribute.IsValidForRequest(ControllerContext, MethodInfo).)

System_CAPS_pubmethodMatch(Object)

(Inherited from Attribute.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

For more information about using attributes, see .

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: