SortedList<TKey,TValue>.ICollection<KeyValuePair<TKey,TValue>>.CopyTo 메서드

정의

특정 ICollection<T> 인덱스부터 시작하여 Array의 요소를 Array에 복사합니다.

 virtual void System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.CopyTo(cli::array <System::Collections::Generic::KeyValuePair<TKey, TValue>> ^ array, int arrayIndex) = 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 arrayIndex);
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)(), arrayIndex As Integer) Implements ICollection(Of KeyValuePair(Of TKey, TValue)).CopyTo

매개 변수

array
KeyValuePair<TKey,TValue>[]

Array에서 복사한 요소의 대상인 일차원 ICollection<T>입니다. Array에는 0부터 시작하는 인덱스가 있어야 합니다.

arrayIndex
Int32

array에서 복사가 시작되는 0부터 시작하는 인덱스입니다.

구현

예외

array이(가) null인 경우

arrayIndex가 0보다 작은 경우

소스 ICollection<T>의 요소 수가 대상 arrayarrayIndex부터 끝까지 사용 가능한 공간보다 큽니다.

적용 대상