DictionaryModelBinder<TKey,TValue>.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:
override System::Threading::Tasks::Task ^ BindModelAsync(Microsoft::AspNetCore::Mvc::ModelBinding::ModelBindingContext ^ bindingContext);
public override System.Threading.Tasks.Task BindModelAsync (Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext);
override this.BindModelAsync : Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext -> System.Threading.Tasks.Task
Public Overrides 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).