Share via


ConsumesAttribute.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 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

Parameters

Returns

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

Implements

Applies to