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

定义

将集合的元素复制到数组,从特定数组索引处开始复制。Copies the elements of the collection to an array, starting at a particular array index.

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>[]

一维数组,是从集合中复制的元素的目标,并且索引必须从零开始。The one-dimensional array that is the destination of the elements copied from the collection The array must have zero-based indexing.

arrayIndex
Int32

array 中自其开始复制的从零开始的索引。The zero-based index in array at which copying begins.

实现

适用于