HttpMethodActionConstraint クラス

定義

MVC がレガシ IRouter サポートで使用されている場合に HTTP メソッドのフィルター処理を適用するために使用される の実装IActionConstraint。 を HttpMethodActionConstraint 使用して、アクションでサポートされる HTTP メソッドのセットを決定できます。

public ref class HttpMethodActionConstraint : Microsoft::AspNetCore::Mvc::ActionConstraints::IActionConstraint
public class HttpMethodActionConstraint : Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraint
type HttpMethodActionConstraint = class
    interface IActionConstraint
    interface IActionConstraintMetadata
Public Class HttpMethodActionConstraint
Implements IActionConstraint
継承
HttpMethodActionConstraint
実装

コンストラクター

HttpMethodActionConstraint(IEnumerable<String>)

HttpMethodActionConstraint の新しいインスタンスを作成します。

フィールド

HttpMethodConstraintOrder

OrderによってHttpMethodActionConstraint使用される値。

プロパティ

HttpMethods

許可されている HTTP メソッドの一覧を取得します。 すべての HTTP メソッドが許可されている場合は、空のリストを返します。

Order

制約の順序。

メソッド

Accept(ActionConstraintContext)

アクションが選択の有効な候補であるかどうかを判断します。

適用対象