Share via


AcceptVerbsAttribute Constructor

 

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

Overload List

Name Description
System_CAPS_pubmethod AcceptVerbsAttribute(String)

Initializes a new instance of the AcceptVerbsAttribute class by using the action method it will respond to.

System_CAPS_pubmethod AcceptVerbsAttribute(String[])

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

See Also

AcceptVerbsAttribute Class
System.Web.Http Namespace

Return to top

AcceptVerbsAttribute Constructor (String)

Initializes a new instance of the AcceptVerbsAttribute class by using the action method it will respond to.

Syntax

public AcceptVerbsAttribute(
    string method
)
public:
AcceptVerbsAttribute(
    String^ method
)
new : 
        method:string -> AcceptVerbsAttribute
Public Sub New (
    method As String
)

Parameters

  • method
    Type: System.String

    The HTTP method 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 methods that the action method will respond to.

Syntax

public AcceptVerbsAttribute(
    params string[] methods
)
public:
AcceptVerbsAttribute(
    ... array<String^>^ methods
)
new : 
        [<ParamArrayAttribute>] methods:string[] -> AcceptVerbsAttribute
Public Sub New (
    ParamArray methods As String()
)

Parameters

  • methods
    Type: System.String[]

    The HTTP methods that the action method will respond to.

Return to top