共用方式為


HttpMethodActionConstraint.Accept(ActionConstraintContext) 方法

定義

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

public:
 virtual bool Accept(Microsoft::AspNetCore::Mvc::ActionConstraints::ActionConstraintContext ^ context);
public virtual 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 Overridable Function Accept (context As ActionConstraintContext) As Boolean

參數

傳回

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

實作

適用於