Click or drag to resize
Task Scheduler Managed Class Library

TriggerCollectionCopyTo Method (Int32, Trigger, Int32, Int32)

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

Namespace:  Microsoft.Win32.TaskScheduler
Assembly:  Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.10.1
Syntax
public void CopyTo(
	int index,
	Trigger[] array,
	int arrayIndex,
	int count
)
Request Example View Source

Parameters

index
Type: SystemInt32
The zero-based index in the source at which copying begins.
array
Type: Microsoft.Win32.TaskSchedulerTrigger
The Trigger array that is the destination of the elements copied from TriggerCollection. The Trigger array must have zero-based indexing.
arrayIndex
Type: SystemInt32
The zero-based index in Trigger array at which copying begins.
count
Type: SystemInt32
The number of elements to copy.
Exceptions
ExceptionCondition
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