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)

適用対象