Show / Hide Table of Contents

Interface IComponentRenderer

Supports rendering HTML content that can be used in a web page.

Namespace: Sitecore.AspNet.RenderingEngine.Rendering
Assembly: Sitecore.AspNet.RenderingEngine.Abstractions.dll
Syntax
public interface IComponentRenderer

Methods

Render(ISitecoreRenderingContext, ViewContext)

Generates the output HTML.

Declaration
Task<IHtmlContent> Render(ISitecoreRenderingContext renderingContext, ViewContext viewContext)
Parameters
Type Name Description
ISitecoreRenderingContext renderingContext

The current ISitecoreRenderingContext.

Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext

The current Microsoft.AspNetCore.Mvc.Rendering.ViewContext.

Returns
Type Description
System.Threading.Tasks.Task<Microsoft.AspNetCore.Html.IHtmlContent>

The HTML content to render.

Back to top Generated by DocFX