Class RazorPageModel<T>
A razor page model with a reference to the routed IContent object.
Marked using IRender
Inheritance
System.Object
RazorPageModel<T>
Namespace: EPiServer.Web.Mvc
Assembly: EPiServer.Cms.AspNetCore.Mvc.dll
Version: 12.0.3Syntax
[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 |