ActivityCollection.ICollection<Activity>.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 de ICollection dans Array, à partir d'un index particulier de Array.
virtual void System.Collections.Generic.ICollection<System.Workflow.ComponentModel.Activity>.CopyTo(cli::array <System::Workflow::ComponentModel::Activity ^> ^ array, int arrayIndex) = System::Collections::Generic::ICollection<System::Workflow::ComponentModel::Activity ^>::CopyTo;
void ICollection<Activity>.CopyTo (System.Workflow.ComponentModel.Activity[] array, int arrayIndex);
abstract member System.Collections.Generic.ICollection<System.Workflow.ComponentModel.Activity>.CopyTo : System.Workflow.ComponentModel.Activity[] * int -> unit
override this.System.Collections.Generic.ICollection<System.Workflow.ComponentModel.Activity>.CopyTo : System.Workflow.ComponentModel.Activity[] * int -> unit
Sub CopyTo (array As Activity(), arrayIndex As Integer) Implements ICollection(Of Activity).CopyTo
Paramètres
- arrayIndex
- Int32
Index de base zéro au sein de ICollection où démarre la copie.
Implémente
Exceptions
array est une référence Null (Nothing en Visual Basic).
index est inférieur à zéro.
array est multidimensionnel.
index est supérieur ou égal à la longueur de array.
Le nombre d'éléments dans le ICollection source est supérieur à la quantité d'espace disponible entre index et la fin du tableau de destination.
Le type Activity ne peut pas être converti automatiquement dans un type de array de destination.