Fix #4614 - update IModelBinder docs
This commit is contained in:
parent
f1982bd987
commit
a8142b8858
|
|
@ -16,15 +16,15 @@ namespace Microsoft.AspNetCore.Mvc.ModelBinding
|
||||||
/// <param name="bindingContext">The <see cref="ModelBindingContext"/>.</param>
|
/// <param name="bindingContext">The <see cref="ModelBindingContext"/>.</param>
|
||||||
/// <returns>
|
/// <returns>
|
||||||
/// <para>
|
/// <para>
|
||||||
/// A <see cref="Task"/> which on completion returns a <see cref="ModelBindingResult"/> which
|
/// A <see cref="Task"/> which will complete when the model binding process completes.
|
||||||
/// represents the result of the model binding process.
|
|
||||||
/// </para>
|
/// </para>
|
||||||
/// <para>
|
/// <para>
|
||||||
/// If model binding was successful, the <see cref="ModelBindingResult"/> should be a value created
|
/// If model binding was successful, the <see cref="ModelBindingContext.Result"/> should have
|
||||||
/// with <see cref="ModelBindingResult.Success"/>. If model binding failed, the
|
/// <see cref="ModelBindingResult.IsModelSet"/> set to <c>true</c>.
|
||||||
/// <see cref="ModelBindingResult"/> should be a value created with <see cref="ModelBindingResult.Failed"/>.
|
/// </para>
|
||||||
/// If there was no data, or this model binder cannot handle the operation, the
|
/// <para>
|
||||||
/// <see cref="ModelBindingContext.Result"/> should be null.
|
/// A model binder that completes successfully should set <see cref="ModelBindingContext.Result"/> to
|
||||||
|
/// a value returned from <see cref="ModelBindingResult.Success"/>.
|
||||||
/// </para>
|
/// </para>
|
||||||
/// </returns>
|
/// </returns>
|
||||||
Task BindModelAsync(ModelBindingContext bindingContext);
|
Task BindModelAsync(ModelBindingContext bindingContext);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue