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.

Inheritance
System.Object
ContentAreaContext
Implements
System.IDisposable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Web.Mvc
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
public class ContentAreaContext : IDisposable
Remarks

This class implements System.IDisposable and should be used inside a using statement.

Constructors

ContentAreaContext(RequestContext, ContentReference)

Initializes a new instance of the ContentAreaContext class.

Declaration
public ContentAreaContext(RequestContext requestContext, ContentReference contentLink)
Parameters
Type Name Description
System.Web.Routing.RequestContext requestContext

The request context.

ContentReference contentLink

The content link.

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Declaration
public void Dispose()

Dispose(Boolean)

Triggers the end element when disposing is true

Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type Name Description
System.Boolean disposing

true to write the end element.

Implements

System.IDisposable

Extension Methods