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 |
---|---|---|
IUrl |
segmentLocator | The segment locator being extended |
Content |
contentLink | The content link that owns the url segment |
Content |
destinationLink | The parent that specifies which sieblings to examine |
System. |
urlSegment | The url segment to examine |
System. |
language | The language for the content |
Returns
Type | Description |
---|---|
System. |
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 |
---|---|---|
IUrl |
urlSegmentLocator | The segment locator being extended |
IContent | content | The content owning the url segment |
System. |
urlSegment | The url segment to examine |
Returns
Type | Description |
---|---|
Content |
A colliding reference or Empty |