語言

ExpandoObject.ICollection<KeyValuePair<String,Object>>.CopyTo 方法

定義

將 的 ICollection<T> 元素複製到型別 KeyValuePair<TKey,TValue>為 的陣列,從指定的陣列索引開始。

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

參數

array
KeyValuePair<String,Object>[]

一維陣列為 的KeyValuePair<TKey,TValue>類型,是從 中複製KeyValuePair<TKey,TValue>元素的目的地ICollection<T>。 陣列必須具有零基索引。

arrayIndex
Int32

複製開始的零基索引 array 。

實作

適用於