Class SitecoreLayoutContextPropertyBindingSource
Version: 21.x
Binding source for binding Sitecore Context property data.
Inheritance
System.Object
SitecoreLayoutContextPropertyBindingSource
Inherited Members
SitecoreLayoutBindingSource.GetPropertyModel
SitecoreLayoutBindingSource.GetFieldModel
SitecoreLayoutBindingSource.Name
Namespace: Sitecore.AspNet.RenderingEngine.Binding.Sources
Assembly: Sitecore.AspNet.RenderingEngine.dll
Syntax
Constructors
SitecoreLayoutContextPropertyBindingSource(String)
Initializes a new instance of the SitecoreLayoutContextPropertyBindingSource class.
Declaration
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The name of the property in the Sitecore context to use for binding. |
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 | renderingContext |
Returns
| Type | Description |
|---|---|
| System.Object | The bound model. |
Overrides
If you have suggestions for improving this article, let us know!