CaptureCollection.ICollection.CopyTo(Array, Int32) Methode

Definition

Kopiert alle Elemente der Auflistung an das angegebene Array, das am angegebenen Index beginnt.

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

Parameter

array
Array

Das eindimensionale Array, in das die Auflistung kopiert werden soll.

arrayIndex
Int32

Der nullbasierte Index im Zielarray, in dem das Kopieren beginnen soll.

Implementiert

Ausnahmen

array ist NULL.

arrayIndex außerhalb der Grenzen von array.-oder-arrayIndex plus Count liegt außerhalb der Grenzen von array.

Gilt für: