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 中从零开始的索引,从此处开始复制。

实现

适用于