TabletDeviceCollection.CopyTo(TabletDevice[], Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om