Class SitecoreLayoutRouteFieldBindingSource
- Namespace
- Sitecore.AspNetCore.SDK.RenderingEngine.Binding.Sources
- Assembly
- Sitecore.AspNetCore.SDK.RenderingEngine.dll
Binding source for binding Sitecore Route field data.
public class SitecoreLayoutRouteFieldBindingSource : SitecoreLayoutBindingSource, IEquatable<BindingSource?>
- Inheritance
-
SitecoreLayoutRouteFieldBindingSource
- Implements
- Inherited Members
Remarks
Initializes a new instance of the SitecoreLayoutRouteFieldBindingSource class.
Constructors
SitecoreLayoutRouteFieldBindingSource(string)
Initializes a new instance of the SitecoreLayoutRouteFieldBindingSource class.
public SitecoreLayoutRouteFieldBindingSource(string name)
Parameters
name
stringThe name of the field in the Sitecore route to use for binding.
SitecoreLayoutRouteFieldBindingSource(string, string, bool, bool)
Binding source for binding Sitecore Route field data.
public SitecoreLayoutRouteFieldBindingSource(string id, string displayName, bool isGreedy, bool isFromRequest)
Parameters
id
stringThe binding source ID.
displayName
stringThe display name.
isGreedy
boolA value indicating whether the source is greedy.
isFromRequest
boolA value indicating whether the data comes from the HTTP request.
Remarks
Initializes a new instance of the SitecoreLayoutRouteFieldBindingSource class.
Methods
GetModel(IServiceProvider, ModelBindingContext, ISitecoreRenderingContext)
Gets the model for binding.
public override object? GetModel(IServiceProvider serviceProvider, ModelBindingContext bindingContext, ISitecoreRenderingContext context)
Parameters
serviceProvider
IServiceProviderThe IServiceProvider.
bindingContext
ModelBindingContextThe ModelBindingContext.
context
ISitecoreRenderingContext
Returns
- object
The bound model.