A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Interface IContentRouteHelper

Provides information about the routed content of the current web request.

Namespace: EPiServer.Web.Routing
Assembly: EPiServer.Cms.AspNetCore.dll
Version: 12.0.3
Syntax
public interface IContentRouteHelper

Properties

Content

Gets the current routed IContent instance.

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

Gets the reference to the current routed IContent instance.

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

LanguageID

Gets the language string for the current routed content.

Declaration
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.

Extension Methods