Class SitecoreLayoutContextModelBinderProvider

Version: 21.x

Creates SitecoreLayoutModelBinder and SitecoreLayoutModelBinder instances.

Inheritance

System.Object

SitecoreLayoutContextModelBinderProvider

Implements

Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderProvider

Namespace: Sitecore.AspNet.RenderingEngine.Binding.Providers

Assembly: Sitecore.AspNet.RenderingEngine.dll
Syntax
public class SitecoreLayoutContextModelBinderProvider : Object

Constructors

SitecoreLayoutContextModelBinderProvider()

Declaration
public SitecoreLayoutContextModelBinderProvider()

Methods

GetBinder(ModelBinderProviderContext)

Declaration
public IModelBinder GetBinder(ModelBinderProviderContext context)
Parameters
TypeNameDescription
Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderProviderContextcontext
Returns
TypeDescription
Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder

Implements

Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinderProvider

If you have suggestions for improving this article, let us know!