CaptureCollection.ICollection.CopyTo(Array, Int32) Méthode

Définition

Copie tous les éléments de la collection dans le tableau donné en commençant à l'index spécifié.

 virtual void System.Collections.ICollection.CopyTo(Array ^ array, int arrayIndex) = System::Collections::ICollection::CopyTo;
void ICollection.CopyTo (Array array, int arrayIndex);
abstract member System.Collections.ICollection.CopyTo : Array * int -> unit
override this.System.Collections.ICollection.CopyTo : Array * int -> unit
Sub CopyTo (array As Array, arrayIndex As Integer) Implements ICollection.CopyTo

Paramètres

array
Array

Tableau unidimensionnel dans lequel la collection doit être copiée.

arrayIndex
Int32

Index de base zéro dans le tableau de destination dans lequel la copie doit commencer.

Implémente

Exceptions

array a la valeur null.

arrayIndex est en dehors des limites array.-ou-arrayIndex plus Count sont en dehors des limites de array.

S’applique à