Class IContentDataExtensions

Contains extension methods related to IContentData for System.Web.Mvc.HtmlHelper.

Inheritance
System.Object
IContentDataExtensions
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.Html
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
public static class IContentDataExtensions

Fields

InsideContentAreaMarker

Key that is used to define if a content instance is rendererd inside a content area.

Declaration
public const string InsideContentAreaMarker = "EPi:InsideContentArea"
Field Value
Type Description
System.String

Methods

RenderContentData(HtmlHelper, IContentData, Boolean)

Calls the render of the block to render the block context to the stream.

Declaration
public static void RenderContentData(this HtmlHelper html, IContentData contentData, bool isContentInContentArea)
Parameters
Type Name Description
System.Web.Mvc.HtmlHelper html

The HTML.

IContentData contentData

The content data.

System.Boolean isContentInContentArea

Flag that indicates if the content is rendered inside a content area.

RenderContentData(HtmlHelper, IContentData, Boolean, TemplateModel, IContentRenderer)

Calls the render of the block to render the block context to the stream.

Declaration
public static void RenderContentData(this HtmlHelper html, IContentData contentData, bool isContentInContentArea, TemplateModel templateModel, IContentRenderer contentRenderer)
Parameters
Type Name Description
System.Web.Mvc.HtmlHelper html

The HTML.

IContentData contentData

The content data.

System.Boolean isContentInContentArea

Flag that indicates if the content is rendered inside a content area

TemplateModel templateModel

The template model.

IContentRenderer contentRenderer

The content renderer.

RenderContentData(HtmlHelper, IContentData, Boolean, String)

Calls the renderer of the block to render the block context to the stream.

Declaration
public static void RenderContentData(this HtmlHelper html, IContentData contentData, bool isContentInContentArea, string templateTag)
Parameters
Type Name Description
System.Web.Mvc.HtmlHelper html

The HTML.

IContentData contentData

The content data.

System.Boolean isContentInContentArea

A flag indicating if the content is rendered inside a content area.

System.String templateTag

A tag used to resolve the content template to use.