Dictionary<TKey,TValue>.ICollection<KeyValuePair<TKey,TValue>>.CopyTo Methode

Definitie

Kopieert de elementen van de ICollection<T> naar een matrix van het type KeyValuePair<TKey,TValue>, beginnend bij de opgegeven matrixindex.

 virtual void System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.CopyTo(cli::array <System::Collections::Generic::KeyValuePair<TKey, TValue>> ^ array, int index) = System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<TKey, TValue>>::CopyTo;
void ICollection<KeyValuePair<TKey,TValue>>.CopyTo(System.Collections.Generic.KeyValuePair<TKey,TValue>[] array, int index);
abstract member System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.CopyTo : System.Collections.Generic.KeyValuePair<'Key, 'Value>[] * int -> unit
override this.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.CopyTo : System.Collections.Generic.KeyValuePair<'Key, 'Value>[] * int -> unit
Sub CopyTo (array As KeyValuePair(Of TKey, TValue)(), index As Integer) Implements ICollection(Of KeyValuePair(Of TKey, TValue)).CopyTo

Parameters

array
KeyValuePair<TKey,TValue>[]

De eendimensionale matrix van het type KeyValuePair<TKey,TValue> dat de bestemming is van de KeyValuePair<TKey,TValue> elementen die zijn gekopieerd uit de ICollection<T>. De matrix moet indexering op basis van nul hebben.

index
Int32

De op nul gebaseerde index array waarin kopiƫren begint.

Implementeringen

Uitzonderingen

array is null.

index is kleiner dan 0.

Het aantal elementen in de bron ICollection<T> is groter dan de beschikbare ruimte van index tot het einde van de bestemming array.

Van toepassing op