1. SitecoreLayoutContextBindingSource

Class SitecoreLayoutContextBindingSource

Version: 21.x

Binding source for binding Sitecore Context data.

Inheritance
System.Object
SitecoreLayoutContextBindingSource
Namespace: Sitecore.AspNet.RenderingEngine.Binding.Sources
Assembly: Sitecore.AspNet.RenderingEngine.dll
Syntax
public class SitecoreLayoutContextBindingSource : SitecoreLayoutBindingSource

Constructors

SitecoreLayoutContextBindingSource()

Initializes a new instance of the SitecoreLayoutContextBindingSource class.

Declaration
public SitecoreLayoutContextBindingSource()

Methods

GetModel(IServiceProvider, ModelBindingContext, ISitecoreRenderingContext)

Gets the model for binding.

Declaration
public override object GetModel(IServiceProvider serviceProvider, ModelBindingContext bindingContext, ISitecoreRenderingContext renderingContext)
Parameters
TypeNameDescription
System.IServiceProviderserviceProvider

The System.IServiceProvider.

Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContextbindingContext

The Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext.

ISitecoreRenderingContextrenderingContext
Returns
TypeDescription
System.Object

The bound model.

Overrides
If you have suggestions for improving this article, let us know!