Dela via


IActionConstraint.Accept(ActionConstraintContext) Method

Definition

Determines whether an action is a valid candidate for selection.

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

Parameters

Returns

True if the action is valid for selection, otherwise false.

Applies to