Dela via


AcceptVerbsAttribute Constructors

Definition

Overloads

AcceptVerbsAttribute(String)

Initializes a new instance of the AcceptVerbsAttribute class.

AcceptVerbsAttribute(String[])

Initializes a new instance of the AcceptVerbsAttribute class.

AcceptVerbsAttribute(String)

Source:
AcceptVerbsAttribute.cs
Source:
AcceptVerbsAttribute.cs
Source:
AcceptVerbsAttribute.cs

Initializes a new instance of the AcceptVerbsAttribute class.

public:
 AcceptVerbsAttribute(System::String ^ method);
public AcceptVerbsAttribute (string method);
new Microsoft.AspNetCore.Mvc.AcceptVerbsAttribute : string -> Microsoft.AspNetCore.Mvc.AcceptVerbsAttribute
Public Sub New (method As String)

Parameters

method
String

The HTTP method the action supports.

Applies to

AcceptVerbsAttribute(String[])

Source:
AcceptVerbsAttribute.cs
Source:
AcceptVerbsAttribute.cs
Source:
AcceptVerbsAttribute.cs

Initializes a new instance of the AcceptVerbsAttribute class.

public:
 AcceptVerbsAttribute(... cli::array <System::String ^> ^ methods);
public AcceptVerbsAttribute (params string[] methods);
new Microsoft.AspNetCore.Mvc.AcceptVerbsAttribute : string[] -> Microsoft.AspNetCore.Mvc.AcceptVerbsAttribute
Public Sub New (ParamArray methods As String())

Parameters

methods
String[]

The HTTP methods the action supports.

Applies to