Interface IContentRouteConstraint
Can be used as constraint in ContentRoute. Called after a IContent has been routed to determine if the routed instance fullfills the specified constraint.
Namespace: EPiServer.Web.Routing
Assembly: EPiServer.dll
Version: 7.19.2Syntax
public interface IContentRouteConstraintMethods
Match(Route, SegmentContext, String)
Evaluates if the routed IContent matches the implemented constraint.
Declaration
bool Match(Route route, SegmentContext segmentContext, string parameterName)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Web.Routing.Route | route | The route. | 
| SegmentContext | segmentContext | The segment context. | 
| System.String | parameterName | Name of the parameter. | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | true if the route matches the constraint else false. | 
