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

定义

从特定的数组索引处开始,将 ICollection<T> 的元素复制到类型 KeyValuePair<TKey,TValue> 的一个数组。Copies the elements of the ICollection<T> to an array of type KeyValuePair<TKey,TValue>, starting at the specified array index.

 virtual void System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string,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);
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> 元素的目标。The one-dimensional array of type KeyValuePair<TKey,TValue> that is the destination of the KeyValuePair<TKey,TValue> elements copied from the ICollection<T>. 该数组的索引必须从零开始。The array must have zero-based indexing.

arrayIndex
Int32

array 中从零开始的索引,将从此索引处开始进行复制。The zero-based index in array at which copying starts.

适用于