TabletDeviceCollection.CopyTo(TabletDevice[], Int32) 메서드

정의

현재 컬렉션의 모든 요소를 지정된 대상 배열 인덱스에서 시작하는 지정된 1차원 배열에 복사합니다.

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

매개 변수

array
TabletDevice[]

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

index
Int32

0부터 시작하며 배열 매개 변수에서 복사가 시작되는 위치의 인덱스입니다.

예외

index와 컬렉션 수를 더한 값이 array.length보다 크거나 같은 경우

arraynull인 경우입니다.

index가 0보다 작거나, indexarray.length보다 크거나 같은 경우

예제

다음 예제는 CopyTo 메서드.

// Copy the collection to array of tablet devices starting at position index
myTabletDeviceCollection.CopyTo(myTabletDeviceArray, index);
' Copy the collection to array of tablet devices starting at position index
myTabletDeviceCollection.CopyTo(myTabletDeviceArray, index)

적용 대상