Class SitecoreRenderingContext

Version: 21.x

Represents the context data for Sitecore rendering logic.

Inheritance
System.Object
SitecoreRenderingContext
Namespace: Sitecore.AspNet.RenderingEngine
Assembly: Sitecore.AspNet.RenderingEngine.dll
Syntax
RequestResponse
public class SitecoreRenderingContext : Object, ISitecoreRenderingContext

Constructors

SitecoreRenderingContext()

Declaration
RequestResponse
public SitecoreRenderingContext()

Properties

Component

Gets or sets the current Component.

Declaration
RequestResponse
public Component Component { get; set; }
Property Value
TypeDescription
Component

Controller

Gets or sets the current Microsoft.AspNetCore.Mvc.ControllerBase.

Declaration
RequestResponse
public ControllerBase Controller { get; set; }
Property Value
TypeDescription
Microsoft.AspNetCore.Mvc.ControllerBase

RenderingHelpers

Gets or sets the current RenderingHelpers.

Declaration
RequestResponse
public RenderingHelpers RenderingHelpers { get; set; }
Property Value
TypeDescription
RenderingHelpers

Response

Gets or sets the current SitecoreLayoutResponse.

Declaration
RequestResponse
public SitecoreLayoutResponse Response { get; set; }
Property Value
TypeDescription
SitecoreLayoutResponse

Implements

Do you have some feedback for us?

If you have suggestions for improving this article,