ListBox.ObjectCollection.ICollection.CopyTo(Array, Int32) Methode

Definitie

Kopieert de elementen van de verzameling naar een matrix, beginnend bij een bepaalde matrixindex.

Deze API ondersteunt de productinfrastructuur en is niet bedoeld om rechtstreeks vanuit de code te gebruiken.

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

Parameters

destdestination
Array

De eendimensionale matrix die de bestemming is van de elementen die zijn gekopieerd uit ICollection. De matrix moet indexering op basis van nul hebben.

index
Int32

De op nul gebaseerde index in de matrix waarop kopiƫren begint.

Implementeringen

Uitzonderingen

Het matrixtype is niet compatibel met de items in de ListBox.ObjectCollection.

.NET 5 en hoger: destination is null.

Opmerkingen

Dit lid is een expliciete implementatie van interfaceleden. Deze kan alleen worden gebruikt wanneer het ListBox.ObjectCollection exemplaar naar een ICollection interface wordt gecast.

Van toepassing op