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 의 인덱스입니다.

예외

destinationnull입니다.

arrayIndex 가 0보다 작거나 길이보다 destination크거나 같습니다.

-또는-

의 요소 DataGridViewComboBoxCell.ObjectCollection 수가 사용 가능한 공간 arrayIndexdestination보다 큰 경우

destination 가 다차원입니다.

적용 대상

추가 정보