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

Class UrlSegmentCreatorExtensions

Extends IUrlSegmentCreator with convenient methods.

Inheritance
System.Object
UrlSegmentCreatorExtensions
Namespace: EPiServer.Web
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
public static class UrlSegmentCreatorExtensions : Object

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.