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 メソッドが許可されます。

適用対象