GraphPathSerializationDictionary.CopyTo 方法

定义

将 System.object 的元素复制到 system.exception,从特定的系统数组索引处开始复制。

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

参数

array
KeyValuePair<String,String>[]

一维系统数组,它是从 System.object 复制的元素的目标。 System.object 必须具有从零开始的索引。

arrayIndex
Int32

数组中从零开始的索引,在此处开始复制。

实现

例外

数组为 null

arrayIndex 小于0。

数组是多维的。-或-源 arrayIndex 中的元素数大于从到目标数组末尾的可用空间。-或-T 不能自动强制转换为目标数组的类型。

适用于