TabletDeviceCollection.CopyTo(TabletDevice[], Int32) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
지정된 대상 배열 인덱스에서 시작하여 현재 컬렉션의 모든 요소를 지정된 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
이array면 null .
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)