Delen via


AcceptVerbsAttribute Constructors

Definition

Overloads

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(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.

public AcceptVerbsAttribute (params string[] verbs);
new System.Web.Mvc.AcceptVerbsAttribute : string[] -> System.Web.Mvc.AcceptVerbsAttribute
Public Sub New (ParamArray verbs As String())

Parameters

verbs
String[]

The HTTP verbs that the action method will respond to.

Exceptions

The verbs parameter is null or zero length.

Applies to

AcceptVerbsAttribute(HttpVerbs)

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

public AcceptVerbsAttribute (System.Web.Mvc.HttpVerbs verbs);
new System.Web.Mvc.AcceptVerbsAttribute : System.Web.Mvc.HttpVerbs -> System.Web.Mvc.AcceptVerbsAttribute
Public Sub New (verbs As HttpVerbs)

Parameters

verbs
HttpVerbs

The HTTP verbs that the action method will respond to.

Applies to