November Happy Hour will be moved to Thursday December 5th.

Class CrossSiteContentRouteContraint

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. A route constraint used for the content route starting from RootPage. It validates that the routed content is not under another site than current resolved site.

Inheritance
System.Object
CrossSiteContentRouteContraint
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Web.Routing.Internal
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
public class CrossSiteContentRouteContraint : IContentRouteConstraint

Constructors

CrossSiteContentRouteContraint(ISiteDefinitionResolver)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Creates a new instance of CrossSiteContentRouteContraint

Declaration
public CrossSiteContentRouteContraint(ISiteDefinitionResolver siteDefinitionResolver)
Parameters
Type Name Description
ISiteDefinitionResolver siteDefinitionResolver

The site definition to use.

Methods

Match(Route, SegmentContext, String)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Evaluates that the routed content does not belong to another site than the current resolved site.

Declaration
public bool Match(Route route, SegmentContext segmentContext, string parameterName)
Parameters
Type Name Description
System.Web.Routing.Route route

The current route

SegmentContext segmentContext

The routing context

System.String parameterName

The name of the paramenter

Returns
Type Description
System.Boolean

true if the routed data matches the constraint else false.

Implements

Extension Methods