ICollection(Activity).CopyTo Method

ActivityCollection.ICollection<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)

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, 3.5, 3.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

ADD
Show:
© 2016 Microsoft