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