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
namestringThe 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
serviceProviderIServiceProviderThe IServiceProvider.
bindingContextModelBindingContextThe ModelBindingContext.
renderingContextISitecoreRenderingContext
Returns
- object
The bound model.