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 Content
Declaration
public ContentModelBinder(IEventAggregator eventAggregator)
Parameters
Type | Name | Description |
---|---|---|
IEvent |
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. |
bindingContext | |
System. |
source | |
Type | modelType |
BindModelAsync(ModelBindingContext)
Declaration
public Task BindModelAsync(ModelBindingContext bindingContext)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
bindingContext |
Returns
Type | Description |
---|---|
Task |