SaaS CMS has officially launched! Learn more now.

Class DefaultContentRouteHelper

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. The ContentRouteHelper class provides information about the requrested content of the current web request.

Inheritance
System.Object
DefaultContentRouteHelper
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Web.Routing.Internal
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
public class DefaultContentRouteHelper : IContentRouteHelper

Constructors

DefaultContentRouteHelper(RequestContext, RouteCollection, IViewContentRetriever, IContentLoader)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the DefaultContentRouteHelper class.

Declaration
public DefaultContentRouteHelper(RequestContext context, RouteCollection routes, IViewContentRetriever viewContentRetriever, IContentLoader contentLoader)
Parameters
Type Name Description
System.Web.Routing.RequestContext context

The context.

System.Web.Routing.RouteCollection routes

The routes.

IViewContentRetriever viewContentRetriever

The view content retriever.

IContentLoader contentLoader

The content loader

Properties

Content

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets the content.

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

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets the content link.

Declaration
public virtual ContentReference ContentLink { get; }
Property Value
Type Description
ContentReference

ContentLoader

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Get the Content Loader

Declaration
protected IContentLoader ContentLoader { get; }
Property Value
Type Description
IContentLoader

ContentRetriever

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets the view content retriever.

Declaration
protected IViewContentRetriever ContentRetriever { get; }
Property Value
Type Description
IViewContentRetriever

LanguageID

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets the language string for the current page.

Declaration
public virtual string LanguageID { get; }
Property Value
Type Description
System.String
Remarks

The property will be set the first time it gets called, and cached for the current instance.

RequestContext

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets information about an HTTP request that matches the defined route.

Declaration
protected RequestContext RequestContext { get; }
Property Value
Type Description
System.Web.Routing.RequestContext

Methods

SetRouteDataIfPageNotRouted()

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Sets the route data if page not routed yet.

Declaration
protected virtual void SetRouteDataIfPageNotRouted()

Implements

Extension Methods