IActionConstraint Interface¶
Summary¶
Supports conditional logic to determine whether or not an associated action is valid to be selected for the given request.
Properties¶
-
Order
()¶ The constraint order.
Return type: System.Int32 int Order { get; }
-
Methods¶
-
Accept
(Microsoft.AspNet.Mvc.ActionConstraintContext)¶ Determines whether an action is a valid candidate for selection.
Arguments: - context (Microsoft.AspNet.Mvc.ActionConstraintContext) – The [Microsoft.AspNet.Mvc.ActionConstraintContext](Microsoft.AspNet.Mvc.ActionConstraintContext.yml).
Return type: System.Boolean
Returns: True if the action is valid for selection, otherwise false.
bool Accept(ActionConstraintContext context)
-