Interface IContentRouteConstraint

Can be used as constraint in IContentRoute. Called after a IContent has been routed to determine if the routed instance fullfills the specified constraint.

Namespace: EPiServer.Web.Routing
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
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.

Extension Methods