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.
Implements
Inherited Members
Namespace: EPiServer.Web.Routing.Internal
Assembly: EPiServer.dll
Version: 10.10.4Syntax
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 |
ContentLink
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()