Share via


CancellationTokenModelBinder.BindModelAsync(ModelBindingContext) Method

Definition

Attempts to bind a model.

public:
 virtual System::Threading::Tasks::Task ^ BindModelAsync(Microsoft::AspNetCore::Mvc::ModelBinding::ModelBindingContext ^ bindingContext);
public 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 Function BindModelAsync (bindingContext As ModelBindingContext) As Task

Parameters

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

Implements

Applies to