Table of Contents

Class SitecoreLayoutRoutePropertyBindingSource

Namespace
Sitecore.AspNetCore.SDK.RenderingEngine.Binding.Sources
Assembly
Sitecore.AspNetCore.SDK.RenderingEngine.dll

Binding source for binding Sitecore Route property data.

public class SitecoreLayoutRoutePropertyBindingSource : SitecoreLayoutBindingSource, IEquatable<BindingSource?>
Inheritance
SitecoreLayoutRoutePropertyBindingSource
Implements
Inherited Members

Constructors

SitecoreLayoutRoutePropertyBindingSource(string)

Initializes a new instance of the SitecoreLayoutRoutePropertyBindingSource class.

public SitecoreLayoutRoutePropertyBindingSource(string name)

Parameters

name string

The name of the property in the Sitecore route to use for binding.

Methods

GetModel(IServiceProvider, ModelBindingContext, ISitecoreRenderingContext)

Gets the model for binding.

public override object? GetModel(IServiceProvider serviceProvider, ModelBindingContext bindingContext, ISitecoreRenderingContext context)

Parameters

serviceProvider IServiceProvider

The IServiceProvider.

bindingContext ModelBindingContext

The ModelBindingContext.

context ISitecoreRenderingContext

The ISitecoreRenderingContext.

Returns

object

The bound model.