Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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)
Syntax
'Declaration
Public Sub New ( _
ParamArray verbs As String() _
)
public AcceptVerbsAttribute(
params string[] verbs
)
public:
AcceptVerbsAttribute(
... array<String^>^ verbs
)
Parameters
- verbs
Type: System.String[]
The HTTP verbs that the action method will respond to.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | The verbs parameter is null reference (Nothing in Visual Basic) or zero length. |