Click or drag to resize
Task Scheduler Managed Class Library

ActionCollectionCopyTo Method (Int32, Action, Int32, Int32)

Copies the elements of the ActionCollection to an Action array, starting at a particular Action 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,
	Action[] 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.TaskSchedulerAction
The Action array that is the destination of the elements copied from ActionCollection. The Action array must have zero-based indexing.
arrayIndex
Type: SystemInt32
The zero-based index in Action 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 ActionCollection is greater than the available space from arrayIndex to the end of the destination array.
See Also