GenericCollection<T>.CopyTo - Méthode (T[], Int32)
Copie la collection interne dans le tableau donné en commençant à l'index spécifié.
Espace de noms : Microsoft.SharePoint.Taxonomy.Generic
Assembly : Microsoft.SharePoint.Taxonomy (dans Microsoft.SharePoint.Taxonomy.dll)
Syntaxe
'Déclaration
<PermissionSetAttribute(SecurityAction.Demand, Name := "FullTrust")> _
Public Sub CopyTo ( _
array As T(), _
index As Integer _
)
'Utilisation
Dim instance As GenericCollection
Dim array As T()
Dim index As Integer
instance.CopyTo(array, index)
[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")]
public void CopyTo(
T[] array,
int index
)
Paramètres
array
Type : []Tableau dans lequel copier les données de la collection.
index
Type : System.Int32Index du tableau à partir duquel commencer la copie des données.
Exceptions
Exception | Condition |
---|---|
ArgumentException | Le tableau n'est pas assez grand pour contenir les données copiées |
ArgumentNullException | Se produit si le tableau est null |
ArgumentOutOfRangeException | Se produit si l'index est inférieur à zéro |