Dela via


HttpMethodActionConstraint.Accept(ActionConstraintContext) Method

Definition

Determines whether an action is a valid candidate for selection.

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

Parameters

Returns

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

Implements

Applies to