Class UrlSegmentGeneratorExtensions
Extends IUrl
Inheritance
Namespace: EPiServer.Web
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public static class UrlSegmentGeneratorExtensions : Object
Methods
Create(IUrlSegmentGenerator, String)
Creates a url friendly segment from the passed in string
Declaration
public static string Create(this IUrlSegmentGenerator urlSegmentGenerator, string proposedSegment)
Parameters
Type | Name | Description |
---|---|---|
IUrl |
urlSegmentGenerator | The url segment generator that is extended |
System. |
proposedSegment | The segment to generate a url friendly segment for |
Returns
Type | Description |
---|---|
System. |
A url friendly segment |
Remarks
The default registered instance of Url
IsValid(IUrlSegmentGenerator, String)
Determines if an url segment is considered url friendly
Declaration
public static bool IsValid(this IUrlSegmentGenerator urlSegmentGenerator, string segment)
Parameters
Type | Name | Description |
---|---|---|
IUrl |
urlSegmentGenerator | The url segment generator that is extended |
System. |
segment | The segment to validate |
Returns
Type | Description |
---|---|
System. |
true if segment is considered valid else false |
Remarks
The default registered instance of Url