Class UrlSegmentCreatorExtensions
Extends IUrlSegmentCreator with convenient methods.
Inheritance
System.Object
UrlSegmentCreatorExtensions
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: 10.10.4Syntax
public static class UrlSegmentCreatorExtensions
Methods
Create(IUrlSegmentCreator, IContent)
Creates a url segment for a content instance.
Declaration
public static string Create(this IUrlSegmentCreator urlSegmentCreator, IContent content)
Parameters
Type | Name | Description |
---|---|---|
IUrlSegmentCreator | urlSegmentCreator | The url segment creator that is extended |
IContent | content | The content instance to generate url segment for |
Returns
Type | Description |
---|---|
System.String | The generated url segment |
Remarks
The generated url segment is unique among the sieblings for the content
The default registered instance of UrlSegmentOptions is used where ValidCharacters specifies which characthers that are considered valid. CharacterMap specifies which character replacements.