CollectionModelBinder<TElement>.AddErrorIfBindingRequired Metoda

Definice

protected:
 void AddErrorIfBindingRequired(Microsoft::AspNetCore::Mvc::ModelBinding::ModelBindingContext ^ bindingContext);
protected void AddErrorIfBindingRequired (Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext);
member this.AddErrorIfBindingRequired : Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext -> unit
Protected Sub AddErrorIfBindingRequired (bindingContext As ModelBindingContext)

Parametry

bindingContext
ModelBindingContext

Hodnota ModelBindingContext

Poznámky

Z důvodů kompatibility back-compatibility musí mít stejnou IsModelSet hodnotu, Result pokud true není model nejvyšší úrovně vázán. ParametrBinder proto nemůže rozpoznat IsBindingRequired selhání kolekcí. Sem přidejte chybu.

Platí pro