MSDN Library

ActivityCollection.ICollection<Activity>.CopyTo Method

.NET Framework (current version)

Copies the elements of the ICollection to an Array, starting at a particular Array index.

Namespace:  System.Workflow.ComponentModel
Assembly:  System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)

void ICollection<Activity>.CopyTo(
	Activity[] array,
	int arrayIndex
)

Parameters

array
Type: System.Workflow.ComponentModel.Activity[]

The Array which is the target of the copy operation.

arrayIndex
Type: System.Int32

The zero-based index within the ICollection where the copy starts.

Implements

ICollection<T>.CopyTo(T[], Int32)

ExceptionCondition
ArgumentNullException

array is a null reference (Nothing in Visual Basic).

ArgumentOutOfRangeException

index is less than zero.

ArgumentException

array is multidimensional.

index is equal to or greater than the length of array.

The number of elements in the source ICollection is greater than the available space from index to the end of the destination array.

InvalidCastException

The type Activity cannot be cast automatically to the type of the destination array.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0
Show:
© 2016 Microsoft