Class UrlSegmentHandler
Handles URL segments for content data.
Inheritance
System.Object
UrlSegmentHandler
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
Assembly: EPiServer.dll
Version: 11.20.7Syntax
[ServiceConfiguration(typeof(UrlSegmentHandler))]
[Obsolete("Use IUrlSegmentCreator or IUrlSegmentLocator instead")]
public class UrlSegmentHandler
Constructors
UrlSegmentHandler()
Declaration
public UrlSegmentHandler()
Methods
CreateUrlSegment(IContent)
Creates the URL segment for a content.
Declaration
public virtual string CreateUrlSegment(IContent content)
Parameters
Type | Name | Description |
---|---|---|
IContent | content |
Returns
Type | Description |
---|---|
System.String | Unique url segment |
Remarks
The url segment should be unique among all sieblings.
ExistOtherContentWithSegment(ContentReference, ContentReference, String, String)
Determines if there exist another siebling with the same url segment.
Declaration
public virtual bool ExistOtherContentWithSegment(ContentReference contentLink, ContentReference destinationLink, string urlSegment, string languageBranch)
Parameters
Type | Name | Description |
---|---|---|
ContentReference | contentLink | The content link. |
ContentReference | destinationLink | The destination link. |
System.String | urlSegment | The URL segment. |
System.String | languageBranch | The language branch. |
Returns
Type | Description |
---|---|
System.Boolean |