Dictionary<TKey,TValue>.ICollection<KeyValuePair<TKey,TValue>>.CopyTo Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
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.