語言

TabControl.TabPageCollection.ICollection.CopyTo(Array, Int32) 方法

定義

將集合中的元素複製到指定的陣列,從指定的索引開始。

 virtual void System.Collections.ICollection.CopyTo(Array ^ dest, int index) = System::Collections::ICollection::CopyTo;
void ICollection.CopyTo(Array dest, int index);
abstract member System.Collections.ICollection.CopyTo : Array * int -> unit
override this.System.Collections.ICollection.CopyTo : Array * int -> unit
Sub CopyTo (dest As Array, index As Integer) Implements ICollection.CopyTo

參數

dest
Array

一維陣列,作為從集合複製元素的目的地。 陣列必須具有零基索引。

index
Int32

複製開始的陣列中以零為基礎的索引。

實作

例外狀況

dest 是 null。

index 小於零。

dest 是多維的。

-或-

元素 TabControl.TabPageCollection 的數量大於從索引到末 dest尾的可用空間。

中 TabControl.TabPageCollection 出現的物品無法自動投擲成 dest類型的。

備註

此成員為明確介面成員實作。 它只能在實 TabControl.TabPageCollection 例投射到 ICollection 介面時使用。

適用於