Class MvcContentRenderer
The default implementation of IContentRenderer.
Inheritance
System.Object
MvcContentRenderer
Implements
Namespace: EPiServer.Web.Mvc
Assembly: EPiServer.Cms.AspNetCore.Mvc.dll
Version: 12.0.3Syntax
public class MvcContentRenderer : Object, IContentRenderer
Constructors
MvcContentRenderer()
Declaration
public MvcContentRenderer()
Methods
RenderAsync(IHtmlHelper, IContentData, TemplateModel)
Renders the content given by contentData
using the Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper.ViewContext.
Both partial controllers and partial views can be rendered.
Declaration
public virtual Task RenderAsync(IHtmlHelper helper, IContentData contentData, TemplateModel templateModel)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper | helper | The helper. |
IContentData | contentData | The content data. |
TemplateModel | templateModel | The template model. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |