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 .

0보다 작거나 index 0보다 크거나 같은 index경우 array.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)

적용 대상