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
Methods
Render(ISitecoreRenderingContext, ViewContext)
Generates the output HTML.
Declaration
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. |
If you have suggestions for improving this article, let us know!