IActionConstraint Interface

Summary

Supports conditional logic to determine whether or not an associated action is valid to be selected for the given request.

Syntax

public interface IActionConstraint : IActionConstraintMetadata

GitHub

View on GitHub

interface Microsoft.AspNet.Mvc.IActionConstraint

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:
Return type:

System.Boolean

Returns:

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

bool Accept(ActionConstraintContext context)