ConcurrentDictionary<TKey,TValue>.ICollection<KeyValuePair<TKey,TValue>>.CopyTo Metoda

Definice

Zkopíruje prvky ICollection do pole počínaje zadaným indexem pole.

 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

Parametry

array
KeyValuePair<TKey,TValue>[]

Jednorozměrné pole, které je cílem prvků zkopírovaných z objektu ICollection. Pole musí mít indexování s nulovým základem.

index
Int32

Index založený na nule v poli array, ve kterém kopírování začíná.

Implementuje

Výjimky

array je null.

index je menší než 0.

index je rovna nebo větší než délka array.

-nebo-

Počet prvků ve zdroji ICollection je větší než dostupné místo od index do konce cíle array.

Platí pro

Viz také