Share via


SPWebPartCollection.CopyTo Method

NOTE: This API is now obsolete.

Obsolete. Copies the elements of the collection to an array of Web Part objects, starting at the specified array index.

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

Syntax

'Declaration
<ObsoleteAttribute("Use SPLimitedWebPartManager instead.")> _
Public Sub CopyTo ( _
    array As WebPart(), _
    index As Integer _
)
'Usage
Dim instance As SPWebPartCollection
Dim array As WebPart()
Dim index As Integer

instance.CopyTo(array, index)
[ObsoleteAttribute("Use SPLimitedWebPartManager instead.")]
public void CopyTo(
    WebPart[] array,
    int index
)

Parameters

  • array
    Type: []

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

  • index
    Type: System.Int32

    The index in the array at which copying begins.

See Also

Reference

SPWebPartCollection Class

SPWebPartCollection Members

Microsoft.SharePoint Namespace