Interface IComponentRenderer

Version: 21.x

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
TypeNameDescription
ISitecoreRenderingContextrenderingContextThe current ISitecoreRenderingContext.
Microsoft.AspNetCore.Mvc.Rendering.ViewContextviewContextThe current Microsoft.AspNetCore.Mvc.Rendering.ViewContext.
Returns
TypeDescription
System.Threading.Tasks.Task

<

Microsoft.AspNetCore.Html.IHtmlContent

>
The HTML content to render.
If you have suggestions for improving this article, let us know!