ActivityCollection::ICollection<Activity^>::CopyTo Method (array<Activity^>^, Int32)
Copies the elements of the ICollection to an Array, starting at a particular Array index.
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.
Implements
ICollection<T>::CopyTo(array<T>^, Int32)| 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
Available since 3.0
Show: