共用方式為


NameScope.CopyTo(KeyValuePair<String,Object>[], Int32) 方法

定義

從特定的陣列索引開始,將集合的項目複製到陣列。

public:
 virtual void CopyTo(cli::array <System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>> ^ array, int arrayIndex);
public void CopyTo (System.Collections.Generic.KeyValuePair<string,object>[] array, int arrayIndex);
abstract member CopyTo : System.Collections.Generic.KeyValuePair<string, obj>[] * int -> unit
override this.CopyTo : System.Collections.Generic.KeyValuePair<string, obj>[] * int -> unit
Public Sub CopyTo (array As KeyValuePair(Of String, Object)(), arrayIndex As Integer)

參數

array
KeyValuePair<String,Object>[]

一維陣列,是從集合複製元素的目的端。此陣列必須具有以零起始的索引。

arrayIndex
Int32

array 中以零起始的索引,即開始複製的位置。

實作

適用於