Class SitecoreLayoutRoutePropertyBindingSource

Version: 21.x

Binding source for binding Sitecore Route property data.

Inheritance
System.Object
SitecoreLayoutRoutePropertyBindingSource
Namespace: Sitecore.AspNet.RenderingEngine.Binding.Sources
Assembly: Sitecore.AspNet.RenderingEngine.dll
Syntax
RequestResponse
public class SitecoreLayoutRoutePropertyBindingSource : SitecoreLayoutBindingSource

Constructors

SitecoreLayoutRoutePropertyBindingSource(String)

Initializes a new instance of the SitecoreLayoutRoutePropertyBindingSource class.

Declaration
RequestResponse
public SitecoreLayoutRoutePropertyBindingSource(string name)
Parameters
TypeNameDescription
System.Stringname

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

Methods

GetModel(IServiceProvider, ModelBindingContext, ISitecoreRenderingContext)

Gets the model for binding.

Declaration
RequestResponse
public override object GetModel(IServiceProvider serviceProvider, ModelBindingContext bindingContext, ISitecoreRenderingContext context)
Parameters
TypeNameDescription
System.IServiceProviderserviceProvider

The System.IServiceProvider.

Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContextbindingContext

The Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext.

ISitecoreRenderingContextcontext

The ISitecoreRenderingContext.

Returns
TypeDescription
System.Object

The bound model.

Overrides

Do you have some feedback for us?

If you have suggestions for improving this article,