CollectionModelBinder<TElement>.CreateOrReplaceCollection Metódus

Definíció

Lehetővé teszi, hogy a származtatott osztályok manipulálják a gyűjteményt, mielőtt visszaadják azt a kötőanyagból.

protected:
 virtual bool CreateOrReplaceCollection(System::Web::ModelBinding::ModelBindingExecutionContext ^ modelBindingExecutionContext, System::Web::ModelBinding::ModelBindingContext ^ bindingContext, System::Collections::Generic::IList<TElement> ^ newCollection);
protected virtual bool CreateOrReplaceCollection(System.Web.ModelBinding.ModelBindingExecutionContext modelBindingExecutionContext, System.Web.ModelBinding.ModelBindingContext bindingContext, System.Collections.Generic.IList<TElement> newCollection);
abstract member CreateOrReplaceCollection : System.Web.ModelBinding.ModelBindingExecutionContext * System.Web.ModelBinding.ModelBindingContext * System.Collections.Generic.IList<'Element> -> bool
override this.CreateOrReplaceCollection : System.Web.ModelBinding.ModelBindingExecutionContext * System.Web.ModelBinding.ModelBindingContext * System.Collections.Generic.IList<'Element> -> bool
Protected Overridable Function CreateOrReplaceCollection (modelBindingExecutionContext As ModelBindingExecutionContext, bindingContext As ModelBindingContext, newCollection As IList(Of TElement)) As Boolean

Paraméterek

modelBindingExecutionContext
ModelBindingExecutionContext

A végrehajtási környezet.

bindingContext
ModelBindingContext

A kötési környezet.

newCollection
IList<TElement>

Az új gyűjtemény.

Válaszok

true minden esetben.

A következőre érvényes: