1. SitecoreLayoutComponentFieldsBindingSource

Class SitecoreLayoutComponentFieldsBindingSource

Version: 21.x

Binding source for binding Sitecore Component fields.

Inheritance
System.Object
SitecoreLayoutComponentFieldsBindingSource
Namespace: Sitecore.AspNet.RenderingEngine.Binding.Sources
Assembly: Sitecore.AspNet.RenderingEngine.dll
Syntax
public class SitecoreLayoutComponentFieldsBindingSource : SitecoreLayoutBindingSource

Constructors

SitecoreLayoutComponentFieldsBindingSource()

Initializes a new instance of the SitecoreLayoutComponentFieldsBindingSource class.

Declaration
public SitecoreLayoutComponentFieldsBindingSource()

Methods

GetModel(IServiceProvider, ModelBindingContext, ISitecoreRenderingContext)

Gets the model for binding.

Declaration
public override object GetModel(IServiceProvider serviceProvider, ModelBindingContext bindingContext, ISitecoreRenderingContext context)
Parameters
TypeNameDescription
System.IServiceProviderserviceProvider

The System.IServiceProvider.

Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContextbindingContext

The Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext.

ISitecoreRenderingContextcontext

The ISitecoreRenderingContext.

Returns
TypeDescription
System.Object

The bound model.

Overrides
If you have suggestions for improving this article, let us know!