Freigeben über


DictionaryModelBinder<TKey,TValue>.CreateOrReplaceCollection Methode

Definition

Konvertiert die Sammlung zu einem Wörterbuch.

protected:
 override bool CreateOrReplaceCollection(System::Web::ModelBinding::ModelBindingExecutionContext ^ modelBindingExecutionContext, System::Web::ModelBinding::ModelBindingContext ^ bindingContext, System::Collections::Generic::IList<System::Collections::Generic::KeyValuePair<TKey, TValue>> ^ newCollection);
protected override bool CreateOrReplaceCollection (System.Web.ModelBinding.ModelBindingExecutionContext modelBindingExecutionContext, System.Web.ModelBinding.ModelBindingContext bindingContext, System.Collections.Generic.IList<System.Collections.Generic.KeyValuePair<TKey,TValue>> newCollection);
override this.CreateOrReplaceCollection : System.Web.ModelBinding.ModelBindingExecutionContext * System.Web.ModelBinding.ModelBindingContext * System.Collections.Generic.IList<System.Collections.Generic.KeyValuePair<'Key, 'Value>> -> bool
Protected Overrides Function CreateOrReplaceCollection (modelBindingExecutionContext As ModelBindingExecutionContext, bindingContext As ModelBindingContext, newCollection As IList(Of KeyValuePair(Of TKey, TValue))) As Boolean

Parameter

modelBindingExecutionContext
ModelBindingExecutionContext

Ausführungskontext

bindingContext
ModelBindingContext

Der Bindungskontext.

newCollection
IList<KeyValuePair<TKey,TValue>>

Die neue Auflistung.

Gibt zurück

true in allen Fällen.

Gilt für: