AcceptVerbsAttribute Constructor

 

Initializes a new instance of the AcceptVerbsAttribute class.

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

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.

Return to top

AcceptVerbsAttribute Constructor (HttpVerbs)

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

No code example is currently available or this language may not be supported.

Parameters

verbs
Type: System.Web.Mvc.HttpVerbs

The HTTP verbs that the action method will respond to.

Return to top

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.

No code example is currently available or this language may not be supported.

Parameters

verbs
Type: System.String[]

The HTTP verbs that the action method will respond to.

Exception Condition
ArgumentException

The verbs parameter is null or zero length.

Return to top
Show: