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

Class ContentRouteDefinition

Defines a route for content

Inheritance
System.Object
ContentRouteDefinition
Namespace: EPiServer.Core.Routing.Pipeline
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
public class ContentRouteDefinition : Object

Constructors

ContentRouteDefinition()

Declaration
public ContentRouteDefinition()

Properties

ContextMode

Specifies for which ContextMode the route should be registered.

Declaration
public RouteContextMode ContextMode { get; set; }
Property Value
Type Description
RouteContextMode
Remarks

Default value is All

Name

The name of the route

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

RouteRootResolver

A resolver for where which content that is the root for the route definition

Declaration
public Func<SiteDefinition, ContentReference> RouteRootResolver { get; set; }
Property Value
Type Description
System.Func<SiteDefinition, ContentReference>
Remarks

By default it resolves from StartPage

StaticSegments

Specifies which static segments (if any) that should be prepended before the content segments

Declaration
public IEnumerable<string> StaticSegments { get; set; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<System.String>

SupportMultiLanguage

Specifies if content resolved by this route is multi lingual

Declaration
public bool SupportMultiLanguage { get; set; }
Property Value
Type Description
System.Boolean
Remarks

Default value is true

Extension Methods