Class ContentModelBinder
Maps view models, supporting mapping to and from any
Inheritance
System.Object
Namespace: Umbraco.Cms.Web.Common.ModelBinders
Assembly: Umbraco.Web.Common.dll
Syntax
public class ContentModelBinder : IModelBinder
Constructors
View SourceContentModelBinder(IEventAggregator)
Initializes a new instance of the ContentModelBinder class.
Declaration
public ContentModelBinder(IEventAggregator eventAggregator)
Parameters
Type | Name | Description |
---|---|---|
IEventAggregator | eventAggregator |
Methods
View SourceBindModel(ModelBindingContext, Object, Type)
Attempts to bind the model
Declaration
public void BindModel(ModelBindingContext bindingContext, object source, Type modelType)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext | bindingContext | |
System.Object | source | |
Type | modelType |
BindModelAsync(ModelBindingContext)
Declaration
public Task BindModelAsync(ModelBindingContext bindingContext)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext | bindingContext |
Returns
Type | Description |
---|---|
Task |