StringValues.ICollection<String>.CopyTo(String[], Int32) Méthode

Définition

Copie l’intégralité StringValuesdans un tableau de chaînes, en commençant à l’index spécifié du tableau cible.

 virtual void System.Collections.Generic.ICollection<System.String>.CopyTo(cli::array <System::String ^> ^ array, int arrayIndex) = System::Collections::Generic::ICollection<System::String ^>::CopyTo;
void ICollection<string>.CopyTo(string?[]? array, int arrayIndex);
abstract member System.Collections.Generic.ICollection<System.String>.CopyTo : string[] * int -> unit
override this.System.Collections.Generic.ICollection<System.String>.CopyTo : string[] * int -> unit
Sub CopyTo (array As String(), arrayIndex As Integer) Implements ICollection(Of String).CopyTo

Paramètres

array
String[]

Unidimensionnel Array qui est la destination des éléments copiés. L’indexation Array doit être basée sur zéro.

arrayIndex
Int32

Index de base zéro dans le tableau de destination au début de la copie.

Implémente

Exceptions

array a la valeur null.

arrayIndex est inférieur à 0.

Le nombre d’éléments de la source StringValues est supérieur à l’espace disponible de arrayIndex la fin de la destination array.

S’applique à