Interface ISitecoreRenderingContext

Version: 21.x

Represents the context data for Sitecore rendering logic.

Namespace: Sitecore.AspNet.RenderingEngine
Assembly: Sitecore.AspNet.RenderingEngine.Abstractions.dll
Syntax
RequestResponse
public interface ISitecoreRenderingContext

Properties

Component

Gets or sets the current Component.

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

Controller

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

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

RenderingHelpers

Gets or sets the current RenderingHelpers.

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

Response

Gets or sets the current SitecoreLayoutResponse.

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

Extension Methods

Do you have some feedback for us?

If you have suggestions for improving this article,