ActionCollectionCopyTo(Int32, Action, Int32, Int32) Method

Copies the elements of the ActionCollection to an Action array, starting at a particular Action array index.

Definition

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

Parameters

index  Int32
The zero-based index in the source at which copying begins.
array  Action
The Action array that is the destination of the elements copied from ActionCollection. The Action array must have zero-based indexing.
arrayIndex  Int32
The zero-based index in Action 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 ActionCollection is greater than the available space from arrayIndex to the end of the destination array.

See Also