Share via


IReadOnlyCollection<T>.CopyTo Method

Copies the elements of the collection to the specified 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
Sub CopyTo ( _
    array As T(), _
    arrayIndex As Integer _
)
'Usage
Dim instance As IReadOnlyCollection 
Dim array As T()
Dim arrayIndex As Integer

instance.CopyTo(array, arrayIndex)
void CopyTo(
    T[] array,
    int arrayIndex
)
void CopyTo(
    array<T>^ array, 
    int arrayIndex
)
abstract CopyTo : 
        array:'T[] * 
        arrayIndex:int -> unit
function CopyTo(
    array : T[], 
    arrayIndex : int
)

Parameters

  • array
    Type: array<T[]
    The one-dimensional zero-based index array that is the destination of the elements to copy from the collection.
  • arrayIndex
    Type: System.Int32
    The position in the array at which the copying of the first element starts.

See Also

Reference

IReadOnlyCollection<T> Interface

Microsoft.SqlServer.Management.Sdk.Sfc Namespace