StateBag.ICollection.CopyTo(Array, Int32) 方法

定義

如需這個成員的說明,請參閱 CopyTo(Array, Int32)For a description of this member, see CopyTo(Array, Int32).

 virtual void System.Collections.ICollection.CopyTo(Array ^ array, int index) = System::Collections::ICollection::CopyTo;
void ICollection.CopyTo (Array array, int index);

參數

array
Array

一維 Array,是從 ICollection 複製過來之項目的目的端。The one-dimensional Array that is the destination of the elements copied from ICollection. Array 必須有以零為起始的索引。The Array must have zero-based indexing.

index
Int32

array 中以零起始的索引,即開始複製的位置。The zero-based index in array at which copying begins.

實作

備註

這個成員是明確介面成員實作,This member is an explicit interface member implementation. 只有在 StateBag 執行個體轉換成 ICollection 介面時,才能使用這個成員。It can be used only when the StateBag instance is cast to an ICollection interface.

適用於

另請參閱