Table of Contents

Class SitecoreLayoutComponentParameterBindingSource

Namespace
Sitecore.AspNetCore.SDK.RenderingEngine.Binding.Sources
Assembly
Sitecore.AspNetCore.SDK.RenderingEngine.dll

Binding source for binding Sitecore Component parameter data.

public class SitecoreLayoutComponentParameterBindingSource : SitecoreLayoutBindingSource, IEquatable<BindingSource?>
Inheritance
SitecoreLayoutComponentParameterBindingSource
Implements
Inherited Members

Constructors

SitecoreLayoutComponentParameterBindingSource(string)

Initializes a new instance of the SitecoreLayoutComponentParameterBindingSource class.

public SitecoreLayoutComponentParameterBindingSource(string name)

Parameters

name string

The name of the parameter 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

serviceProvider IServiceProvider

The IServiceProvider.

bindingContext ModelBindingContext

The ModelBindingContext.

context ISitecoreRenderingContext

The ISitecoreRenderingContext.

Returns

object

The bound model.