SPBaseCollection.ICollection.CopyTo Method

Copies the elements of the collection to an array, starting at the specified array index.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No


<SubsetCallableExcludeMemberAttribute(SubsetCallableExcludeMemberType.ExplicitInterfaceProperty)> _
Private Sub CopyTo ( _
    array As Array, _
    index As Integer _
) Implements ICollection.CopyTo
Dim instance As SPBaseCollection
Dim array As Array
Dim index As Integer

CType(instance, ICollection).CopyTo(array, _
void ICollection.CopyTo(
    Array array,
    int index


  • array
    Type: System.Array

    The array that is the destination of the elements that are copied from the collection. The array must have zero-based indexing.

  • index
    Type: System.Int32

    The index in the array at which copying begins.


ICollection.CopyTo(Array, Int32)

See Also


SPBaseCollection Class

SPBaseCollection Members

Microsoft.SharePoint Namespace