語言

OrderedDictionary<TKey,TValue>.KeyCollection.CopyTo 方法

定義

從特定ICollection<T>索引開始,將 的Array元素複製到 Array。

public:
 virtual void CopyTo(cli::array <TKey> ^ array, int arrayIndex);
public void CopyTo(TKey[] array, int arrayIndex);
abstract member CopyTo : 'Key[] * int -> unit
override this.CopyTo : 'Key[] * int -> unit
Public Sub CopyTo (array As TKey(), arrayIndex As Integer)

參數

array
TKey[]

一維 Array ,即從 中複製 ICollection<T>元素的目的地。 必須 Array 有零基索引。

arrayIndex
Int32

複製開始的零基索引 array 。

實作

適用於