Class ContentAreaContext
A helper object that can be used when rendering content in a ContentArea. It keeps track of which content that is currently rendered. This is needed to be able to output edit attributes for correct elements.
Implements
System.IDisposable
Inherited Members
Namespace: EPiServer.Web.Mvc
Assembly: EPiServer.Cms.AspNetCore.Mvc.dll
Version: 12.0.3Syntax
public class ContentAreaContext : ContentRenderingScope, IDisposable
Remarks
This class implements System.IDisposable and should be used inside a using statement.
Constructors
ContentAreaContext(HttpContext, IContent)
Initializes a new instance of the ContentAreaContext class.
Declaration
public ContentAreaContext(HttpContext context, IContent content)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Http.HttpContext | context | The request context. |
IContent | content | The content. |
Implements
System.IDisposable