Search Results for

    Show / Hide Table of Contents
    View Source

    Class ContentModelBinder

    Maps view models, supporting mapping to and from any IPublishedContent or IContentModel.

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Web.Common.ModelBinders
    Assembly: Umbraco.Web.Common.dll
    Syntax
    public class ContentModelBinder : IModelBinder

    Constructors

    View Source

    ContentModelBinder(IEventAggregator)

    Initializes a new instance of the ContentModelBinder class.

    Declaration
    public ContentModelBinder(IEventAggregator eventAggregator)
    Parameters
    Type Name Description
    IEventAggregator eventAggregator

    Methods

    View Source

    BindModel(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
    View Source

    BindModelAsync(ModelBindingContext)

    Declaration
    public Task BindModelAsync(ModelBindingContext bindingContext)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext
    Returns
    Type Description
    Task
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • ContentModelBinder(IEventAggregator)
    • Methods
      • BindModel(ModelBindingContext, Object, Type)
      • BindModelAsync(ModelBindingContext)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX