ActionMethodSelectorAttribute 類別

定義

屬性的基類,可實作條件式邏輯,以啟用或停用指定要求的動作。 請參閱 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 IActionConstraintMetadata
Public MustInherit Class ActionMethodSelectorAttribute
Inherits Attribute
Implements IActionConstraint
繼承
ActionMethodSelectorAttribute
屬性
實作

建構函式

ActionMethodSelectorAttribute()

屬性的基類,可實作條件式邏輯,以啟用或停用指定要求的動作。 請參閱 IActionConstraint

屬性

Order

條件約束順序。

方法

Accept(ActionConstraintContext)

判斷動作是否為選取的有效候選項目。

IsValidForRequest(RouteContext, ActionDescriptor)

判斷動作選取是否對指定的路由內容有效。

適用於