DataGridViewComboBoxCell.ObjectCollection.CopyTo(Object[], Int32) 메서드

정의

배열 내의 지정된 위치에 있는 개체의 기존 배열로 전체 컬렉션을 복사합니다.

public:
 void CopyTo(cli::array <System::Object ^> ^ destination, int arrayIndex);
public void CopyTo (object[] destination, int arrayIndex);
member this.CopyTo : obj[] * int -> unit
Public Sub CopyTo (destination As Object(), arrayIndex As Integer)

매개 변수

destination
Object[]

내용을 복사할 대상 배열입니다.

arrayIndex
Int32

복사가 시작될 destination 내 요소의 인덱스입니다.

예외

destination이(가) null인 경우

arrayIndex가 0보다 작거나 destination의 길이보다 크거나 같은 경우

또는 DataGridViewComboBoxCell.ObjectCollection의 요소 수가 arrayIndex부터 destination 끝까지의 사용 가능한 공간보다 큽니다.

destination가 다차원 배열인 경우

적용 대상

추가 정보