Class SitecoreLayoutComponentFieldsBindingSource
Version: 21.x
Binding source for binding Sitecore Component fields.
Inherited Members
Namespace: Sitecore.AspNet.RenderingEngine.Binding.Sources
Assembly: Sitecore.AspNet.RenderingEngine.dll
Syntax
RequestResponse
public class SitecoreLayoutComponentFieldsBindingSource : SitecoreLayoutBindingSourceConstructors
SitecoreLayoutComponentFieldsBindingSource()
Initializes a new instance of the SitecoreLayoutComponentFieldsBindingSource class.
Declaration
RequestResponse
public SitecoreLayoutComponentFieldsBindingSource()Methods
GetModel(IServiceProvider, ModelBindingContext, ISitecoreRenderingContext)
Gets the model for binding.
Declaration
RequestResponse
public override object GetModel(IServiceProvider serviceProvider, ModelBindingContext bindingContext, ISitecoreRenderingContext context)Parameters
| Type | Name | Description |
|---|---|---|
| System.IServiceProvider | serviceProvider |
The System.IServiceProvider. |
| Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext | bindingContext |
The Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext. |
| ISitecoreRenderingContext | context |
Returns
| Type | Description |
|---|---|
| System.Object |
The bound model. |