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

Definition

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

public:
 void CopyTo(cli::array <Microsoft::SharePoint::SPListItem ^> ^ listItems, int index);
public void CopyTo (Microsoft.SharePoint.SPListItem[] listItems, int index);
Public Sub CopyTo (listItems As SPListItem(), index As Integer)
Parameters
listItems
SPListItem[]

Array of listItems to copy the collection data to.

index
Int32 Int32 Int32

Index of array to start copying the data.

Applies to