Compartilhar via


CollectionModelBinder<TElement>.CreateOrReplaceCollection Método

Definição

Fornece uma maneira para classes derivadas manipularem o conjunto antes de retorná-lo do associador.

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

Parâmetros

modelBindingExecutionContext
ModelBindingExecutionContext

O contexto de execução.

bindingContext
ModelBindingContext

O contexto de associação.

newCollection
IList<TElement>

A nova coleção.

Retornos

Boolean

true em todos os casos.

Aplica-se a