ActionMethodSelectorAttribute.Accept(ActionConstraintContext) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- context
- ActionConstraintContext
Returns
True if the action is valid for selection, otherwise false.