SortedSet(Of T).CopyTo Method (T(), Int32, Int32)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Copies a specified number of elements from SortedSet(Of T) to a compatible one-dimensional array, starting at the specified array index.
Assembly: System (in System.dll)
Parameters
- array
- Type:
T
()
A one-dimensional array that is the destination of the elements copied from the SortedSet(Of T). The array must have zero-based indexing.
- index
- Type: System.Int32
The zero-based index in array at which copying begins.
- count
- Type: System.Int32
The number of elements to copy.
| Exception | Condition |
|---|---|
| ArgumentException | The number of elements in the source array is greater than the available space from index to the end of the destination array. |
| ArgumentNullException | array is Nothing. |
| ArgumentOutOfRangeException | index is less than zero. -or- count is less than zero. |
Show: