Muokkaa

Jaa


TabletDeviceCollection.CopyTo(TabletDevice[], Int32) Method

Definition

Copies all elements in the current collection to the specified one-dimensional array, starting at the specified destination array index.

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)

Parameters

array
TabletDevice[]

The one-dimensional array that is the destination of elements copied from the collection. The array must have zero-based indexing.

index
Int32

The zero-based index in the array parameter where copying begins.

Exceptions

If index + collection count is greater than or equal to array.length.

If array is null.

If index is less than 0 or index is greater than or equal to array.length.

Examples

The following example demonstrates the CopyTo method.

// 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)

Applies to