TriggerCollectionCopyTo(Int32, Trigger, Int32, Int32) Method

Copies the elements of the TriggerCollection to a Trigger array, starting at a particular Trigger array index.

Definition

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.0
public void CopyTo(
	int index,
	Trigger[] array,
	int arrayIndex,
	int count
)

Parameters

index  Int32
The zero-based index in the source at which copying begins.
array  Trigger
The Trigger array that is the destination of the elements copied from TriggerCollection. The Trigger array must have zero-based indexing.
arrayIndex  Int32
The zero-based index in Trigger array at which copying begins.
count  Int32
The number of elements to copy.

Exceptions

ArgumentNullExceptionarray is null.
ArgumentOutOfRangeExceptionarrayIndex is less than 0.
ArgumentException The number of elements in the source TriggerCollection is greater than the available space from arrayIndex to the end of the destination array.

See Also