CodeTypeReferenceCollection.CopyTo(CodeTypeReference[], Int32) 메서드

정의

컬렉션의 항목을 지정된 인덱스의 지정된 1차원 Array 에 복사합니다.

public:
 void CopyTo(cli::array <System::CodeDom::CodeTypeReference ^> ^ array, int index);
public void CopyTo(System.CodeDom.CodeTypeReference[] array, int index);
member this.CopyTo : System.CodeDom.CodeTypeReference[] * int -> unit
Public Sub CopyTo (array As CodeTypeReference(), index As Integer)

매개 변수

array
CodeTypeReference[]

컬렉션에서 복사한 값의 대상인 1차원 Array 입니다.

index
Int32

삽입을 시작할 배열의 인덱스입니다.

예외

array 매개 변수는 다차원입니다.

-또는-

매개 변수에 CodeTypeReferenceCollection 지정된 index 대상 배열의 인덱스와 대상 배열의 끝 사이의 사용 가능한 공간보다 많은 요소 수입니다.

매개 변수는 array .입니다 null.

index 매개 변수가 대상 배열의 최소 인덱스보다 작습니다.

예제

// Copies the contents of the collection, beginning at index 0,
// to the specified CodeTypeReference array.
// 'references' is a CodeTypeReference array.
collection.CopyTo( references, 0 );
' Copies the contents of the collection, beginning at index 0, 
' to the specified CodeTypeReference array.
' 'references' is a CodeTypeReference array.
collection.CopyTo(references, 0)

적용 대상

추가 정보