Class ContentModelBinderProvider
The provider for ContentModelBinder mapping view models, supporting mapping to and from any IPublishedContent or IContentModel.
Inheritance
object
Namespace: Umbraco.Cms.Web.Common.ModelBinders
Assembly: Umbraco.Web.Common.dll
Syntax
public class ContentModelBinderProvider
Methods
View SourceGetBinder(ModelBinderProviderContext)
Creates a Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder based on Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderProviderContext.
Declaration
public IModelBinder? GetBinder(ModelBinderProviderContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| ModelBinderProviderContext | context | The Microsoft.AspNetCore.Mvc.ModelBinding.ModelBinderProviderContext. |
Returns
| Type | Description |
|---|---|
| IModelBinder | An Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder. |