AcceptVerbsAttribute Constructor
Namespace: System.Web.Http
Assembly: System.Web.Http (in System.Web.Http.dll)
Overload List
Name | Description | |
---|---|---|
AcceptVerbsAttribute(String) | Initializes a new instance of the AcceptVerbsAttribute class by using the action method it will respond to. |
|
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.StringThe 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