Compartilhar via


AcceptVerbsAttribute Constructor (HttpVerbs)

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

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

Syntax

'Declaration
Public Sub New ( _
    verbs As HttpVerbs _
)
public AcceptVerbsAttribute(
    HttpVerbs verbs
)
public:
AcceptVerbsAttribute(
    HttpVerbs verbs
)

Parameters

See Also

Reference

AcceptVerbsAttribute Class

AcceptVerbsAttribute Overload

System.Web.Mvc Namespace