ListView.CheckedIndexCollection.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

類型為 Int32 的陣列。

index
Int32

陣列中以零為起始的索引,而且複製會從該位置開始。

實作

例外狀況

陣列型別無法轉型為 Int32

備註

陣列必須包含 32 位帶正負號的整數,或者必須是 Object 陣列。

適用於