ImageList.ImageCollection.ICollection.CopyTo(Array, Int32) 메서드

정의

대상 배열의 지정된 인덱스에서 시작하여 이 컬렉션의 항목을 호환되는 1차원 배열에 복사합니다.

 virtual void System.Collections.ICollection.CopyTo(Array ^ dest, int index) = System::Collections::ICollection::CopyTo;
void ICollection.CopyTo (Array dest, int index);
abstract member System.Collections.ICollection.CopyTo : Array * int -> unit
override this.System.Collections.ICollection.CopyTo : Array * int -> unit
Sub CopyTo (dest As Array, index As Integer) Implements ICollection.CopyTo

매개 변수

dest
Array

컬렉션에서 복사한 요소의 대상인 1차원 Array입니다. 배열에는 0부터 시작하는 인덱스가 있어야 합니다.

index
Int32

Array에서 복사가 시작되는 인덱스(0부터 시작)입니다.

구현

예외

dest이(가) null인 경우

index 가 0보다 작습니다.

dest가 다차원 배열인 경우

또는

ComboBox.ObjectCollection의 요소 수가 index에서 대상 배열 끝까지 사용 가능한 공간보다 큰 경우

ComboBox.ObjectCollection의 형식을 대상 배열의 형식으로 자동 캐스팅할 수 없는 경우

적용 대상