EventLogEntryCollection.ICollection.CopyTo(Array, Int32) Metod

Definition

Kopierar elementen i samlingen till en Array, med början vid ett visst Array index.

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

Parametrar

array
Array

Den endimensionella Array som är målet för de element som kopieras från samlingen. Array Måste ha nollbaserad indexering.

index
Int32

Det nollbaserade index array där kopieringen börjar.

Implementeringar

Kommentarer

CopyTo Använd -metoden för EventLogEntryCollection klassen för att kopiera hela eller en del av samlingen till en EventLogEntry matris.

Gäller för