Class SitecoreRenderingContext
Version: 21.x
Represents the context data for Sitecore rendering logic.
Inheritance
System.Object
SitecoreRenderingContext
Implements
Namespace: Sitecore.AspNet.RenderingEngine
Assembly: Sitecore.AspNet.RenderingEngine.dll
Syntax
RequestResponse
public class SitecoreRenderingContext : Object, ISitecoreRenderingContextConstructors
SitecoreRenderingContext()
Declaration
RequestResponse
public SitecoreRenderingContext()Properties
Component
Gets or sets the current Component.
Declaration
RequestResponse
public Component Component { get; set; }Property Value
| Type | Description |
|---|---|
| Component |
Controller
Gets or sets the current Microsoft.AspNetCore.Mvc.ControllerBase.
Declaration
RequestResponse
public ControllerBase Controller { get; set; }Property Value
| Type | Description |
|---|---|
| Microsoft.AspNetCore.Mvc.ControllerBase |
RenderingHelpers
Gets or sets the current RenderingHelpers.
Declaration
RequestResponse
public RenderingHelpers RenderingHelpers { get; set; }Property Value
| Type | Description |
|---|---|
| RenderingHelpers |
Response
Gets or sets the current SitecoreLayoutResponse.
Declaration
RequestResponse
public SitecoreLayoutResponse Response { get; set; }Property Value
| Type | Description |
|---|---|
| SitecoreLayoutResponse |