AcceptVerbsAttribute Constructor
Initializes a new instance of the AcceptVerbsAttribute class.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
| Name | Description | |
|---|---|---|
![]() | AcceptVerbsAttribute(HttpVerbs) | Initializes a new instance of the AcceptVerbsAttribute class using the HTTP verbs that the action method will respond to. |
![]() | AcceptVerbsAttribute(String[]) | Initializes a new instance of the AcceptVerbsAttribute class by using a list of HTTP verbs that the action method will respond to. |
AcceptVerbsAttribute Constructor (HttpVerbs)
Initializes a new instance of the AcceptVerbsAttribute class using the HTTP verbs that the action method will respond to.
AcceptVerbsAttribute Constructor (String[])
Initializes a new instance of the AcceptVerbsAttribute class by using a list of HTTP verbs that the action method will respond to.
| Exception | Condition |
|---|---|
| ArgumentException | The verbs parameter is null or zero length. |
Show:
