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