SortedSet<T>.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 une partie ou l’ensemble d’un SortedSet<T> tableau unidimensionnel compatible, en commençant au début du tableau de destination ou à un index spécifié.
Surcharges
| Nom | Description |
|---|---|
| CopyTo(T[], Int32, Int32) |
Copie un nombre spécifié d’éléments d’un SortedSet<T> tableau unidimensionnel compatible, en commençant à l’index de tableau spécifié. |
| CopyTo(T[], Int32) |
Copie l’intégralité SortedSet<T> dans un tableau unidimensionnel compatible, en commençant à l’index de tableau spécifié. |
| CopyTo(T[]) |
Copie l’intégralité SortedSet<T> dans un tableau unidimensionnel compatible, en commençant au début du tableau cible. |
Remarques
Cette méthode est une O(n) opération, où n est Count.
CopyTo(T[], Int32, Int32)
- Source:
- SortedSet.cs
- Source:
- SortedSet.cs
- Source:
- SortedSet.cs
- Source:
- SortedSet.cs
- Source:
- SortedSet.cs
Copie un nombre spécifié d’éléments d’un SortedSet<T> tableau unidimensionnel compatible, en commençant à l’index de tableau spécifié.
public:
void CopyTo(cli::array <T> ^ array, int index, int count);
public void CopyTo(T[] array, int index, int count);
member this.CopyTo : 'T[] * int * int -> unit
Public Sub CopyTo (array As T(), index As Integer, count As Integer)
Paramètres
- array
- T[]
Tableau unidimensionnel qui est la destination des éléments copiés à partir du SortedSet<T>. Le tableau doit avoir une indexation de base zéro.
- index
- Int32
Index de base zéro dans array lequel la copie commence.
- count
- Int32
Nombre d’éléments à copier.
Exceptions
Le nombre d’éléments du tableau source est supérieur à l’espace disponible de index la fin du tableau de destination.
array a la valeur null.
Remarques
Cette méthode est une O(n) opération, où n est count.
S’applique à
CopyTo(T[], Int32)
- Source:
- SortedSet.cs
- Source:
- SortedSet.cs
- Source:
- SortedSet.cs
- Source:
- SortedSet.cs
- Source:
- SortedSet.cs
Copie l’intégralité SortedSet<T> dans un tableau unidimensionnel compatible, en commençant à l’index de tableau spécifié.
public:
virtual void CopyTo(cli::array <T> ^ array, int index);
public void CopyTo(T[] array, int index);
abstract member CopyTo : 'T[] * int -> unit
override this.CopyTo : 'T[] * int -> unit
Public Sub CopyTo (array As T(), index As Integer)
Paramètres
- array
- T[]
Tableau unidimensionnel qui est la destination des éléments copiés à partir du SortedSet<T>. Le tableau doit avoir une indexation de base zéro.
- index
- Int32
Index de base zéro dans array lequel la copie commence.
Implémente
Exceptions
Le nombre d’éléments du tableau source est supérieur à l’espace disponible de index la fin du tableau de destination.
array a la valeur null.
index est inférieur à zéro.
Remarques
Cette méthode est une O(n) opération, où n est Count.
S’applique à
CopyTo(T[])
- Source:
- SortedSet.cs
- Source:
- SortedSet.cs
- Source:
- SortedSet.cs
- Source:
- SortedSet.cs
- Source:
- SortedSet.cs
Copie l’intégralité SortedSet<T> dans un tableau unidimensionnel compatible, en commençant au début du tableau cible.
public:
void CopyTo(cli::array <T> ^ array);
public void CopyTo(T[] array);
member this.CopyTo : 'T[] -> unit
Public Sub CopyTo (array As T())
Paramètres
- array
- T[]
Tableau unidimensionnel qui est la destination des éléments copiés à partir du SortedSet<T>.
Exceptions
Le nombre d’éléments de la source SortedSet<T> dépasse le nombre d’éléments que le tableau de destination peut contenir.
array a la valeur null.
Remarques
L’indexation doit array être de base zéro.