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: 9.12.2Syntax
public interface IContentRouteConstraint
Methods
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. |