ActivityCollection.ICollection<Activity>.CopyTo 方法

定义

将元素ICollection复制到从特定Array索引开始的元素Array

 virtual void System.Collections.Generic.ICollection<System.Workflow.ComponentModel.Activity>.CopyTo(cli::array <System::Workflow::ComponentModel::Activity ^> ^ array, int arrayIndex) = System::Collections::Generic::ICollection<System::Workflow::ComponentModel::Activity ^>::CopyTo;
void ICollection<Activity>.CopyTo(System.Workflow.ComponentModel.Activity[] array, int arrayIndex);
abstract member System.Collections.Generic.ICollection<System.Workflow.ComponentModel.Activity>.CopyTo : System.Workflow.ComponentModel.Activity[] * int -> unit
override this.System.Collections.Generic.ICollection<System.Workflow.ComponentModel.Activity>.CopyTo : System.Workflow.ComponentModel.Activity[] * int -> unit
Sub CopyTo (array As Activity(), arrayIndex As Integer) Implements ICollection(Of Activity).CopyTo

参数

array
Activity[]

这是 Array 复制操作的目标。

arrayIndex
Int32

从零开始的索引 ICollection

实现

例外

array是空引用(Visual Basic 中的 Nothing)。

index 小于零。

array 是多维。

index 等于或大于长度 array

ICollection 中的元素数大于目标 index 数组末尾的可用空间。

无法自动将类型 Activity 强制转换为目标 array类型。

适用于