CollectionModelBinder<TElement>.BindModelAsync(ModelBindingContext) Method

Definition

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

Returns

Task

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).

Implements

Applies to