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 為 null 參考 (在 Visual Basic 中為 Nothing)。

index 小於零。

array 是多維的。

index 等於或大於 array 的長度。

來源 ICollection 中項目的數目,大於目的陣列從 index 到結尾的可用空間。

Activity 型別無法自動轉換成目的 array 的型別。

適用於