Class SitecoreLayoutComponentFieldBindingSource
Version: 21.x
Binding source for binding Sitecore Component field data.
Inheritance
System.Object
SitecoreLayoutComponentFieldBindingSource
Inherited Members
SitecoreLayoutBindingSource.GetPropertyModel
SitecoreLayoutBindingSource.GetFieldModel
SitecoreLayoutBindingSource.Name
Namespace: Sitecore.AspNet.RenderingEngine.Binding.Sources
Assembly: Sitecore.AspNet.RenderingEngine.dll
Syntax
Constructors
SitecoreLayoutComponentFieldBindingSource()
Initializes a new instance of the SitecoreLayoutComponentFieldBindingSource class.
Declaration
SitecoreLayoutComponentFieldBindingSource(String)
Initializes a new instance of the SitecoreLayoutComponentFieldBindingSource class.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The name of the field in the Sitecore component to use for binding. |
SitecoreLayoutComponentFieldBindingSource(String, String, Boolean, Boolean)
Initializes a new instance of the SitecoreLayoutComponentFieldBindingSource class.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | id | The binding source ID. |
| System.String | displayName | The display name. |
| System.Boolean | isGreedy | A value indicating whether the source is greedy. |
| System.Boolean | isFromRequest | A value indicating whether the data comes from the HTTP request. |
Methods
GetModel(IServiceProvider, ModelBindingContext, ISitecoreRenderingContext)
Gets the model for binding.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.IServiceProvider | serviceProvider | The System.IServiceProvider. |
| Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext | bindingContext | The Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext. |
| ISitecoreRenderingContext | context | The ISitecoreRenderingContext. |
Returns
| Type | Description |
|---|---|
| System.Object | The bound model. |
Overrides
If you have suggestions for improving this article, let us know!