IActionConstraint.Accept(ActionConstraintContext) 方法

定义

确定操作是否是有效的选择候选项。

public:
 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
Public Function Accept (context As ActionConstraintContext) As Boolean

参数

返回

如果操作对选择有效,则为 True,否则为 false。

适用于