AcceptVerbsAttribute 构造函数

定义

重载

AcceptVerbsAttribute(String)

初始化 AcceptVerbsAttribute 类的新实例。

AcceptVerbsAttribute(String[])

初始化 AcceptVerbsAttribute 类的新实例。

AcceptVerbsAttribute(String)

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

初始化 AcceptVerbsAttribute 类的新实例。

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)

参数

method
String

操作支持的 HTTP 方法。

适用于

AcceptVerbsAttribute(String[])

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

初始化 AcceptVerbsAttribute 类的新实例。

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

参数

methods
String[]

操作支持的 HTTP 方法。

适用于