Interface IUrlSegmentCreator
Component that generates url segments for IContent instances
Namespace: EPiServer.Web
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public interface IUrlSegmentCreator
Methods
Create(IContent, UrlSegmentOptions)
Creates a url segment for a content instance.
Declaration
string Create(IContent content, UrlSegmentOptions urlSegmentOptions)
Parameters
Type | Name | Description |
---|---|---|
IContent | content | The content instance to generate url segment for |
UrlSegmentOptions | urlSegmentOptions | The options used to generate the url segment |
Returns
Type | Description |
---|---|
System.String | The generated url segment |
Remarks
The generated url segment is unique among the sieblings for the content
ValidCharacters specifies which characthers that are considered valid. CharacterMap specifies which character replacements.
Events
Created
Raised when a url segment has been created. An event handler can change url segment
Declaration
event EventHandler<UrlSegmentEventArgs> Created
Event Type
Type | Description |
---|---|
System.EventHandler<UrlSegmentEventArgs> |
Creating
Raised when a url segment is to be created. An event handler can assign url segment
Declaration
event EventHandler<UrlSegmentEventArgs> Creating
Event Type
Type | Description |
---|---|
System.EventHandler<UrlSegmentEventArgs> |