CodeTypeDeclarationCollection.CopyTo(CodeTypeDeclaration[], Int32) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
개체의 요소를 CodeTypeDeclarationCollection 지정된 인덱스에서 시작하여 1차원 Array 인스턴스에 복사합니다.
public:
void CopyTo(cli::array <System::CodeDom::CodeTypeDeclaration ^> ^ array, int index);
public void CopyTo(System.CodeDom.CodeTypeDeclaration[] array, int index);
member this.CopyTo : System.CodeDom.CodeTypeDeclaration[] * int -> unit
Public Sub CopyTo (array As CodeTypeDeclaration(), index As Integer)
매개 변수
- array
- CodeTypeDeclaration[]
컬렉션에서 복사한 값의 대상인 1차원 Array 입니다.
- index
- Int32
삽입을 시작할 배열의 인덱스입니다.
예외
대상 배열은 다차원입니다.
-또는-
매개 변수에 CodeTypeDeclarationCollection 지정된 index 대상 배열의 인덱스와 대상 배열의 끝 사이의 사용 가능한 공간보다 많은 요소 수입니다.
매개 변수는 array .입니다 null.
index 매개 변수가 대상 배열의 최소 인덱스보다 작습니다.
예제
다음 예제에서는 지정된 인덱스 CopyTo 값에서 시작하여 개체의 CodeTypeDeclarationCollection 내용을 배열에 복사하는 방법을 보여 줍니다.
// Copies the contents of the collection, beginning at index 0,
// to the specified CodeTypeDeclaration array.
// 'declarations' is a CodeTypeDeclaration array.
collection.CopyTo( declarations, 0 );
' Copies the contents of the collection, beginning at index 0,
' to the specified CodeTypeDeclaration array.
' 'declarations' is a CodeTypeDeclaration array.
collection.CopyTo(declarations, 0)