共用方式為


HttpMethodActionConstraint(IEnumerable<String>) 建構函式

定義

建立 HttpMethodActionConstraint 的新執行個體。

public:
 HttpMethodActionConstraint(System::Collections::Generic::IEnumerable<System::String ^> ^ httpMethods);
public HttpMethodActionConstraint (System.Collections.Generic.IEnumerable<string> httpMethods);
new Microsoft.AspNetCore.Mvc.ActionConstraints.HttpMethodActionConstraint : seq<string> -> Microsoft.AspNetCore.Mvc.ActionConstraints.HttpMethodActionConstraint
Public Sub New (httpMethods As IEnumerable(Of String))

參數

httpMethods
IEnumerable<String>

要允許的 HTTP 方法清單。 提供空白清單將允許任何 HTTP 方法。

適用於