Share via


ListItemBasedReadOnlyCollection<T>.CopyTo Method (SPListItem[], Int32)

Copies the internal collection to the given array starting at the specified index.

Namespace:  Microsoft.SharePoint.Publishing
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

Syntax

'Declaration
Public Sub CopyTo ( _
    listItems As SPListItem(), _
    index As Integer _
)
'Usage
Dim instance As ListItemBasedReadOnlyCollection
Dim listItems As SPListItem()
Dim index As Integer

instance.CopyTo(listItems, index)
public void CopyTo(
    SPListItem[] listItems,
    int index
)

Parameters

  • listItems
    Type: []
    Array of listItems to copy the collection data to.
  • index
    Type: System.Int32
    Index of array to start copying the data.

See Also

Reference

ListItemBasedReadOnlyCollection<T> Class

ListItemBasedReadOnlyCollection<T> Members

CopyTo Overload

Microsoft.SharePoint.Publishing Namespace