CollectionModelBinder<TElement>.BindModelAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Attempts to bind a model.
public:
virtual System::Threading::Tasks::Task ^ BindModelAsync(Microsoft::AspNetCore::Mvc::ModelBinding::ModelBindingContext ^ bindingContext);
public virtual System.Threading.Tasks.Task BindModelAsync (Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext);
abstract member BindModelAsync : Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext -> System.Threading.Tasks.Task
override this.BindModelAsync : Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext -> System.Threading.Tasks.Task
Public Overridable Function BindModelAsync (bindingContext As ModelBindingContext) As Task
Parameters
- bindingContext
- ModelBindingContext
The ModelBindingContext.
Returns
A Task which will complete when the model binding process completes.
If model binding was successful, the Result should have
IsModelSet set to true
.
A model binder that completes successfully should set Result to a value returned from Success(Object).