Share via


ReadOnlyList<T>.CopyTo Method

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

Namespace:  Microsoft.SqlServer.Management.Sdk.Sfc
Assembly:  Microsoft.SqlServer.Management.Sdk.Sfc (in Microsoft.SqlServer.Management.Sdk.Sfc.dll)

Syntax

'Declaration
Public Sub CopyTo ( _
    array As T(), _
    arrayIndex As Integer _
)
'Usage
Dim instance As ReadOnlyList 
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
abstract CopyTo : 
        array:'T[] * 
        arrayIndex:int -> unit  
override CopyTo : 
        array:'T[] * 
        arrayIndex:int -> unit
public final function CopyTo(
    array : T[], 
    arrayIndex : int
)

Parameters

  • array
    Type: array<T[]
    The one-dimensional array that is the destination of the elements copied from a list.
  • arrayIndex
    Type: System.Int32
    The zero-based index in an array at which copying begins.

Implements

IReadOnlyCollection<T>.CopyTo(array<T[], Int32)

See Also

Reference

ReadOnlyList<T> Structure

Microsoft.SqlServer.Management.Sdk.Sfc Namespace