ASP.NET Core MVC Controls | ComponentOne
C1.AspNetCore.Mvc Assembly / C1.Web.Mvc Namespace / ModelBinderBase Class / BindModelAsync Method
The Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext.

In This Topic
    BindModelAsync Method (ModelBinderBase)
    In This Topic
    Attempts to bind a model.
    Syntax
    'Declaration
     
    Public Function BindModelAsync( _
       ByVal bindingContext As ModelBindingContext _
    ) As Task
    public Task BindModelAsync( 
       ModelBindingContext bindingContext
    )

    Parameters

    bindingContext
    The Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext.

    Return Value

    A System.Threading.Tasks.Task which on completion returns a Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult which represents the result of the model binding process. If model binding was successful, the Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult should be a value created with Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult.Success(System.String,System.Object). If model binding failed, the Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult should be a value created with Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingResult.Failed(System.String). If there was no data, or this model binder cannot handle the operation, the Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext.Result
    See Also