CopyTo Method (T[])
Collapse the table of content
Expand the table of content

SortedSet(Of T).CopyTo Method (T())

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Copies the complete SortedSet(Of T) to a compatible one-dimensional array, starting at the beginning of the target array.

Namespace:  System.Collections.Generic
Assembly:  System (in System.dll)

'Declaration
Public Sub CopyTo ( _
	array As T() _
)

Parameters

array
Type: T ()
A one-dimensional array that is the destination of the elements copied from the SortedSet(Of T).

ExceptionCondition
ArgumentException

The number of elements in the source SortedSet(Of T) exceeds the number of elements that the destination array can contain.

ArgumentNullException

array is Nothing.

The indexing of array must be zero-based.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft