Try our conversational search powered by Generative AI!

Class ContentController<T>

Provides the base implementation for for content controllers.

Inheritance
System.Object
ContentController<T>
Namespace: EPiServer.Web.Mvc
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
[RequireClientResources]
[AuthorizeContent]
[VisitorGroupImpersonation]
[TemplateDescriptor(TemplateTypeCategory = TemplateTypeCategories.MvcController)]
public abstract class ContentController<T> : ActionControllerBase, IRenderTemplate<T>, IRenderTemplate where T : IContent
Type Parameters
Name Description
T
Remarks

The ContentController class is small, containing only a few methods and properties for handling three basic tasks:

  • Support for access checks.
  • Support for handling actions that are not available in the controller.
  • Setting up the capability of impersonating visitor groups.

Constructors

ContentController()

Declaration
protected ContentController()

Implements

Extension Methods