Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ActivityCollection::ICollection<Activity^>::CopyTo Method (array<Activity^>^, Int32)

 

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)

private:
virtual void CopyTo(
	array<Activity^>^ array,
	int arrayIndex
) sealed = ICollection<Activity^>::CopyTo

Parameters

array
Type: array<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.

Exception Condition
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
Available since 3.0
Return to top
Show:
© 2017 Microsoft