英語で読む

次の方法で共有


ActionMethodSelectorAttribute クラス

定義

特定の要求のアクションを有効または無効にする条件付きロジックを実装できる属性の基本クラス。 以下を参照してください。IActionConstraint

C#
[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public abstract class ActionMethodSelectorAttribute : Attribute, Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraint
継承
ActionMethodSelectorAttribute
属性
実装

コンストラクター

ActionMethodSelectorAttribute()

特定の要求のアクションを有効または無効にする条件付きロジックを実装できる属性の基本クラス。 以下を参照してください。IActionConstraint

プロパティ

Order

制約の順序。

メソッド

Accept(ActionConstraintContext)

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

IsValidForRequest(RouteContext, ActionDescriptor)

指定したルート コンテキストに対してアクションの選択が有効かどうかを判断します。

適用対象

製品 バージョン
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0