Class RenderingHelpers

Version: 21.x

Rendering helpers.

Inheritance
System.Object
RenderingHelpers
Namespace: Sitecore.AspNet.RenderingEngine
Assembly: Sitecore.AspNet.RenderingEngine.Abstractions.dll
Syntax
RequestResponse
public class RenderingHelpers : Object

Constructors

RenderingHelpers(IViewComponentHelper, IHtmlHelper)

Initializes a new instance of the RenderingHelpers class.

Declaration
RequestResponse
public RenderingHelpers(IViewComponentHelper viewComponentHelper, IHtmlHelper htmlHelper)
Parameters
TypeNameDescription
Microsoft.AspNetCore.Mvc.IViewComponentHelperviewComponentHelper

The IViewComponetHelper instance Microsoft.AspNetCore.Mvc.IViewComponentHelper.

Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelperhtmlHelper

The IHtmlHelper instance Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper.

Properties

HtmlHelper

Gets IHtmlHelper instance.

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

ViewComponentHelper

Gets IViewComponentHelper instance.

Declaration
RequestResponse
public IViewComponentHelper ViewComponentHelper { get; }
Property Value
TypeDescription
Microsoft.AspNetCore.Mvc.IViewComponentHelper

Do you have some feedback for us?

If you have suggestions for improving this article,