Share via


SortableCollection.CopyTo Method

Copies the elements of the ICollection to an array, starting at a particular array index.

Namespace: Microsoft.Expression.Encoder
Assembly: Microsoft.Expression.Encoder (in microsoft.expression.encoder.dll)

Syntax

'Declaration
Public Sub CopyTo ( _
    array As T(), _
    arrayIndex As Integer _
)
'Usage
Dim instance As SortableCollection(Of T)
Dim array As T()
Dim arrayIndex As Integer

instance.CopyTo(array, arrayIndex)
public void CopyTo (
    T[] array,
    int arrayIndex
)
public:
virtual void CopyTo (
    array<T>^ array, 
    int arrayIndex
) sealed

Parameters

array

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

arrayIndex

The zero-based index, in an array, at which copying begins.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

SortableCollection Generic Class
SortableCollection Members
Microsoft.Expression.Encoder Namespace