Partilhar via


BaseCollection<T>.CopyTo Method

Copies the items of the collection to an array.

Namespace:  Microsoft.Rtc.Workflow.Utilities
Assembly:  Microsoft.Rtc.Workflow (in Microsoft.Rtc.Workflow.dll)

Syntax

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

instance.CopyTo(array, arrayIndex)
public void CopyTo(
    T[] array,
    int arrayIndex
)

Parameters

  • array
    Type: []
    The one-dimensional array that is the destination of the elements copied from BaseCollection. The array must have zero-based indexing.
  • arrayIndex
    Type: System.Int32
    The zero-based index in array at which copying begins.

Implements

ICollection<T>.CopyTo([], Int32)

See Also

Reference

BaseCollection<T> Class

BaseCollection<T> Members

Microsoft.Rtc.Workflow.Utilities Namespace