Class PageController<T>
Provides the base implementation for for page controllers.
Inherited Members
Namespace: EPiServer.Web.Mvc
Assembly: EPiServer.dll
Version: 8.11.0Syntax
[ViewedPageCriterion]
public abstract class PageController<T> : ContentController<T>, IRenderTemplate<T>, IRenderTemplate where T : PageData
Type Parameters
Name | Description |
---|---|
T |
Remarks
The PageControllerBase class is small, containing only a few methods and properties for handling three basic tasks:
- Providing easy access to the PageRouteHelper instance for the current request.
- Support for handling actions that are not available in the controller.
- Setting up the capability of impersonating visitor groups.
Constructors
PageController()
Declaration
protected PageController()
Properties
PageContext
Gets or sets a PageRouteHelper which conveys information about the routed page.
Declaration
public virtual PageRouteHelper PageContext { get; set; }
Property Value
Type | Description |
---|---|
PageRouteHelper |
Remarks
The setter is only used to set up a mock PageRouteHelper object for testing purposes.