Dictionary<TKey,TValue>.ICollection<KeyValuePair<TKey,TValue>>.CopyTo Método

Definición

Copia los elementos de en ICollection<T> una matriz de tipo KeyValuePair<TKey,TValue>, empezando por el índice de matriz especificado.

 virtual void System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.CopyTo(cli::array <System::Collections::Generic::KeyValuePair<TKey, TValue>> ^ array, int index) = System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<TKey, TValue>>::CopyTo;
void ICollection<KeyValuePair<TKey,TValue>>.CopyTo(System.Collections.Generic.KeyValuePair<TKey,TValue>[] array, int index);
abstract member System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.CopyTo : System.Collections.Generic.KeyValuePair<'Key, 'Value>[] * int -> unit
override this.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.CopyTo : System.Collections.Generic.KeyValuePair<'Key, 'Value>[] * int -> unit
Sub CopyTo (array As KeyValuePair(Of TKey, TValue)(), index As Integer) Implements ICollection(Of KeyValuePair(Of TKey, TValue)).CopyTo

Parámetros

array
KeyValuePair<TKey,TValue>[]

Matriz unidimensional de tipo KeyValuePair<TKey,TValue> que es el destino de los KeyValuePair<TKey,TValue> elementos copiados de .ICollection<T> La matriz debe tener una indexación basada en cero.

index
Int32

Índice de base cero en el array que comienza la copia.

Implementaciones

Excepciones

array es null.

index es menor que 0.

El número de elementos del ICollection<T> origen es mayor que el espacio disponible desde index hasta el final del destino array.

Se aplica a