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

Class ContentRouteData

Holds information of IContent and routing context (route language, remaining path, ...) after the uri is routed

Inheritance
System.Object
ContentRouteData
Namespace: EPiServer.Web.Routing
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
public class ContentRouteData : Object

Constructors

ContentRouteData(IContent, String, String, Object, HostDefinition)

Creates a new instance of ContentRouteData

Declaration
public ContentRouteData(IContent content, string routeLanguage, string remainingPath, object partialRoutedObject, HostDefinition hostDefinition)
Parameters
Type Name Description
IContent content
System.String routeLanguage
System.String remainingPath
System.Object partialRoutedObject
HostDefinition hostDefinition

Properties

Content

The routed content

Declaration
public IContent Content { get; }
Property Value
Type Description
IContent

MatchedHost

The host definition that matched the request

Declaration
public HostDefinition MatchedHost { get; }
Property Value
Type Description
HostDefinition

PartialRoutedObject

Partial routed object, if any

Declaration
public object PartialRoutedObject { get; }
Property Value
Type Description
System.Object

RemainingPath

The remaining URL that is yet to be resolved

Declaration
public string RemainingPath { get; }
Property Value
Type Description
System.String

RouteLanguage

The language branch of routed uri

Declaration
public string RouteLanguage { get; }
Property Value
Type Description
System.String

Extension Methods