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
RequestResponse
public interface IComponentRendererMethods
Render(ISitecoreRenderingContext, ViewContext)
Generates the output HTML.
Declaration
RequestResponse
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. |