Table of Contents

Class SitecoreLayoutComponentFieldBindingSource

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

Binding source for binding Sitecore Component field data.

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

Remarks

Initializes a new instance of the SitecoreLayoutComponentFieldBindingSource class.

Constructors

SitecoreLayoutComponentFieldBindingSource()

Initializes a new instance of the SitecoreLayoutComponentFieldBindingSource class.

public SitecoreLayoutComponentFieldBindingSource()

SitecoreLayoutComponentFieldBindingSource(string)

Initializes a new instance of the SitecoreLayoutComponentFieldBindingSource class.

public SitecoreLayoutComponentFieldBindingSource(string name)

Parameters

name string

The name of the field in the Sitecore component to use for binding.

SitecoreLayoutComponentFieldBindingSource(string, string, bool, bool)

Binding source for binding Sitecore Component field data.

public SitecoreLayoutComponentFieldBindingSource(string id, string displayName, bool isGreedy, bool isFromRequest)

Parameters

id string

The binding source ID.

displayName string

The display name.

isGreedy bool

A value indicating whether the source is greedy.

isFromRequest bool

A value indicating whether the data comes from the HTTP request.

Remarks

Initializes a new instance of the SitecoreLayoutComponentFieldBindingSource class.

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.