Class DefaultMvcContentRenderer
Renders a block using the Template
Inheritance
System.Object
DefaultMvcContentRenderer
Implements
Namespace: EPiServer.Cms.AspNetCore.Mvc.Internal
Assembly: EPiServer.Cms.AspNetCore.Mvc.dll
Version: 12.0.3Syntax
public class DefaultMvcContentRenderer : Object, IContentRenderer
Constructors
DefaultMvcContentRenderer(DisplayOptions, ICompositeViewEngine, IServiceProvider, IViewComponentInvokerFactory, IContextModeResolver, LocalizationService)
Initializes a new instance of the Default
Declaration
public DefaultMvcContentRenderer(DisplayOptions displayOptions, ICompositeViewEngine viewEngine, IServiceProvider serviceProvider, IViewComponentInvokerFactory viewComponentInvokerFactory, IContextModeResolver contextModeResolver, LocalizationService localizationService)
Parameters
Type | Name | Description |
---|---|---|
Display |
displayOptions | |
Microsoft. |
viewEngine | |
System. |
serviceProvider | |
Microsoft. |
viewComponentInvokerFactory | |
IContext |
contextModeResolver | |
Localization |
localizationService |
Methods
RenderAsync(IHtmlHelper, IContentData, TemplateModel)
Renders the content given by contentData
using the Microsoft.
Both partial controllers and partial views can be rendered.
Declaration
public Task RenderAsync(IHtmlHelper helper, IContentData contentData, TemplateModel templateModel)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
helper | The helper. |
IContent |
contentData | The content data. |
Template |
templateModel | The template model. |
Returns
Type | Description |
---|---|
System. |