ActionMethodSelectorAttribute 类   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
属性的基类,这些属性可以实现条件逻辑,以启用或禁用给定请求的操作。 请参阅 IActionConstraint。
public ref class ActionMethodSelectorAttribute abstract : Attribute, Microsoft::AspNetCore::Mvc::ActionConstraints::IActionConstraint[System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public abstract class ActionMethodSelectorAttribute : Attribute, Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraint[<System.AttributeUsage(System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)>]
type ActionMethodSelectorAttribute = class
    inherit Attribute
    interface IActionConstraint
    interface IActionConstraintMetadataPublic MustInherit Class ActionMethodSelectorAttribute
Inherits Attribute
Implements IActionConstraint- 继承
- 
				ActionMethodSelectorAttribute
- 属性
- 实现
构造函数
| ActionMethodSelectorAttribute() | 属性的基类,这些属性可以实现条件逻辑,以启用或禁用给定请求的操作。 请参阅 IActionConstraint。 | 
属性
| Order | 约束顺序。 | 
方法
| Accept(ActionConstraintContext) | 确定操作是否是有效的选择候选项。 | 
| IsValidForRequest(RouteContext, ActionDescriptor) | 确定操作选择是否对指定的路由上下文有效。 |