共用方式為


OverloadActionConstraint.Accept(ActionConstraintContext) 方法

定義

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

public:
 virtual bool Accept(Microsoft::AspNetCore::Mvc::ActionConstraints::ActionConstraintContext ^ context);
public bool Accept (Microsoft.AspNetCore.Mvc.ActionConstraints.ActionConstraintContext context);
abstract member Accept : Microsoft.AspNetCore.Mvc.ActionConstraints.ActionConstraintContext -> bool
override this.Accept : Microsoft.AspNetCore.Mvc.ActionConstraints.ActionConstraintContext -> bool
Public Function Accept (context As ActionConstraintContext) As Boolean

參數

傳回

如果動作對選取有效,則為 True,否則為 false。

實作

適用於