Class SitecoreLayoutContextPropertyBindingSource
- Namespace
- Sitecore.AspNetCore.SDK.RenderingEngine.Binding.Sources
- Assembly
- Sitecore.AspNetCore.SDK.RenderingEngine.dll
Binding source for binding Sitecore Context property data.
public class SitecoreLayoutContextPropertyBindingSource : SitecoreLayoutBindingSource, IEquatable<BindingSource?>
- Inheritance
-
SitecoreLayoutContextPropertyBindingSource
- Implements
- Inherited Members
Constructors
SitecoreLayoutContextPropertyBindingSource(string)
Initializes a new instance of the SitecoreLayoutContextPropertyBindingSource class.
public SitecoreLayoutContextPropertyBindingSource(string name)
Parameters
name
stringThe name of the property in the Sitecore context to use for binding.
Methods
GetModel(IServiceProvider, ModelBindingContext, ISitecoreRenderingContext)
Gets the model for binding.
public override object? GetModel(IServiceProvider serviceProvider, ModelBindingContext bindingContext, ISitecoreRenderingContext renderingContext)
Parameters
serviceProvider
IServiceProviderThe IServiceProvider.
bindingContext
ModelBindingContextThe ModelBindingContext.
renderingContext
ISitecoreRenderingContext
Returns
- object
The bound model.