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

Class UrlSegmentLocatorExtensions

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.

Inheritance
System.Object
UrlSegmentLocatorExtensions
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.Internal
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
public static class UrlSegmentLocatorExtensions

Methods

ExistOtherContentWithSegment(IUrlSegmentLocator, ContentReference, ContentReference, String, String)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Determines if there is a content sibling with the same url segment

Declaration
public static bool ExistOtherContentWithSegment(this IUrlSegmentLocator segmentLocator, ContentReference contentLink, ContentReference destinationLink, string urlSegment, string language)
Parameters
Type Name Description
IUrlSegmentLocator segmentLocator

The segment locator being extended

ContentReference contentLink

The content link that owns the url segment

ContentReference destinationLink

The parent that specifies which sieblings to examine

System.String urlSegment

The url segment to examine

System.String language

The language for the content

Returns
Type Description
System.Boolean

FindCollidingReference(IUrlSegmentLocator, IContent, String)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Determines if there is a content sibling with the same url segment

Declaration
public static ContentReference FindCollidingReference(this IUrlSegmentLocator urlSegmentLocator, IContent content, string urlSegment)
Parameters
Type Name Description
IUrlSegmentLocator urlSegmentLocator

The segment locator being extended

IContent content

The content owning the url segment

System.String urlSegment

The url segment to examine

Returns
Type Description
ContentReference

A colliding reference or EmptyReference if there is no colliding reference