SPLimitedWebPartCollection.CopyTo method

Copies all of the Web Parts from the collection into a compatible one-dimensional array, starting at the specified index of the target array.

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

Syntax

'Declaration
Public Sub CopyTo ( _
    array As WebPart(), _
    index As Integer _
)
'Usage
Dim instance As SPLimitedWebPartCollection
Dim array As WebPart()
Dim index As Integer

instance.CopyTo(array, index)
public void CopyTo(
    WebPart[] array,
    int index
)

Parameters

  • array
    Type: []

See also

Reference

SPLimitedWebPartCollection class

SPLimitedWebPartCollection members

Microsoft.SharePoint.WebPartPages namespace