Export (0) Print
Expand All

ActivityCollection.ICollection(Of Activity).CopyTo Method

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)

'Declaration
Private Sub CopyTo ( _
	array As Activity(), _
	arrayIndex As Integer _
) Implements ICollection(Of Activity).CopyTo

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(Of 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:
© 2015 Microsoft