SortedList<TKey,TValue>.ICollection<KeyValuePair<TKey,TValue>>.CopyTo Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Copie les éléments du ICollection<T> dans un Array, en commençant à un index Array particulier.
virtual void System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.CopyTo(cli::array <System::Collections::Generic::KeyValuePair<TKey, TValue>> ^ array, int arrayIndex) = 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 arrayIndex);
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)(), arrayIndex As Integer) Implements ICollection(Of KeyValuePair(Of TKey, TValue)).CopyTo
Paramètres
- array
- KeyValuePair<TKey,TValue>[]
Unidimensionnel Array qui est la destination des éléments copiés à partir de ICollection<T>. L’indexation Array doit être basée sur zéro.
- arrayIndex
- Int32
Index de base zéro dans array lequel la copie commence.
Implémente
Exceptions
array a la valeur null.
arrayIndex est inférieur à zéro.
Le nombre d’éléments de la source ICollection<T> est supérieur à l’espace disponible de arrayIndex la fin de la destination array.