Interface IUrlSegmentRouter
Specifies methods to resolve content from a URL
Namespace: EPiServer.Web.Routing.Segments
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public interface IUrlSegmentRouter
Methods
GetRoutingSegment(ContentReference, String)
Gets the routing specific data for a contentLink.
Declaration
IRoutable GetRoutingSegment(ContentReference contentLink, string preferredLanguageBranch)
Parameters
Type | Name | Description |
---|---|---|
ContentReference | contentLink | The content link. |
System.String | preferredLanguageBranch | The preferred language branch. |
Returns
Type | Description |
---|---|
IRoutable |
ResolveContentForIncoming(ContentReference, String, String)
Resolves a related contentLink with given url segment.
Declaration
IContent ResolveContentForIncoming(ContentReference contentReference, string urlSegment, string preferredLanguage)
Parameters
Type | Name | Description |
---|---|---|
ContentReference | contentReference | The content reference. |
System.String | urlSegment | The URL segment. |
System.String | preferredLanguage | The preferredLanguage |
Returns
Type | Description |
---|---|
IContent | ContentLink if exist else null |