SaaS CMS has officially launched! Learn more now.

Class RazorPageModel<T>

A razor page model with a reference to the routed IContent object. Marked using IRenderTemplate to enable EPiServer to register Razor Pages during assembly scanning

Inheritance
System.Object
RazorPageModel<T>
Namespace: EPiServer.Web.Mvc
Assembly: EPiServer.Cms.AspNetCore.Mvc.dll
Version: 12.0.3
Syntax
[ViewedPageCriterion]
[RequireClientResources]
[VisitorGroupImpersonation]
public abstract class RazorPageModel<T> : PageModel, IRenderTemplate<T>, IRenderTemplate where T : IContent
Type Parameters
Name Description
T

TContent

Constructors

RazorPageModel()

Declaration
protected RazorPageModel()

Properties

CurrentContent

The routed IContent of type T

Declaration
public T CurrentContent { get; set; }
Property Value
Type Description
T

Implements

Extension Methods