Class RenderingHelpers

Version: 21.x

Rendering helpers.

Inheritance

System.Object

RenderingHelpers

Namespace: Sitecore.AspNet.RenderingEngine

Assembly: Sitecore.AspNet.RenderingEngine.Abstractions.dll

Syntax
public class RenderingHelpers : Object

Constructors

RenderingHelpers(IViewComponentHelper, IHtmlHelper)

Initializes a new instance of the RenderingHelpers class.

Declaration
public RenderingHelpers(IViewComponentHelper viewComponentHelper, IHtmlHelper htmlHelper)
Parameters
TypeNameDescription
Microsoft.AspNetCore.Mvc.IViewComponentHelperviewComponentHelperThe IViewComponetHelper instance Microsoft.AspNetCore.Mvc.IViewComponentHelper.
Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelperhtmlHelperThe IHtmlHelper instance Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper.

Properties

HtmlHelper

Gets IHtmlHelper instance.

Declaration
public IHtmlHelper HtmlHelper { get; }
Property Value
TypeDescription
Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper

ViewComponentHelper

Gets IViewComponentHelper instance.

Declaration
public IViewComponentHelper ViewComponentHelper { get; }
Property Value
TypeDescription
Microsoft.AspNetCore.Mvc.IViewComponentHelper
If you have suggestions for improving this article, let us know!