Class SegmentHelper
Helper class for routing segments.
Inheritance
System.Object
SegmentHelper
Namespace: EPiServer.Web.Routing.Segments
Assembly: EPiServer.Cms.AspNetCore.Routing.dll
Version: 12.0.3Syntax
public static class SegmentHelper : Object
Methods
GetModifiedVirtualPathInEditOrPreviewMode(ContentReference, String, ContextMode)
Gets a modified virtual path in edit/preview mode, if the contextMode
is in edit or preview mode.
Declaration
public static string GetModifiedVirtualPathInEditOrPreviewMode(ContentReference contentLink, string virtualPath, ContextMode contextMode)
Parameters
Type | Name | Description |
---|---|---|
Content |
contentLink | The content link. |
System. |
virtualPath | The original virtual path. |
Context |
contextMode | The context mode. |
Returns
Type | Description |
---|---|
System. |
A modified virtual path if the |
TryGetIncomingNodeInEditOrPreviewMode(ContextMode, SegmentPair, out ContentReference)
Tries to get the incoming node in edit/preview mode.
Declaration
public static bool TryGetIncomingNodeInEditOrPreviewMode(ContextMode contextMode, SegmentPair segmentPair, out ContentReference versionSpecificContentReference)
Parameters
Type | Name | Description |
---|---|---|
Context |
contextMode | The context mode |
Segment |
segmentPair | The segment pair to use. |
Content |
versionSpecificContentReference | The returned content reference. |
Returns
Type | Description |
---|---|
System. |
|