Class UrlSegmentLocatorExtensions
Inheritance
System.Object
UrlSegmentLocatorExtensions
Namespace: EPiServer.Web.Internal
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public static class UrlSegmentLocatorExtensions : Object
Methods
ExistOtherContentWithSegment(IUrlSegmentLocator, ContentReference, ContentReference, String, String)
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)
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 |