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.

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

'Declaration
Public Sub New ( _
	ParamArray verbs As String() _
)
'Usage
Dim verbs As String()

Dim instance As New AcceptVerbsAttribute(verbs)

Parameters

verbs
Type: System.String()

The HTTP verbs that the action method will respond to.

ExceptionCondition
ArgumentException

The verbs parameter is Nothing or zero length.

Show: