'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