Share via


SPMigratableSiteCollection.CopyTo method

NOTE: This API is now obsolete.

Copies the site collections in the collection to an array of SPSite objects, starting at a specified array index.

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

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
<ObsoleteAttribute("Gradual Upgrade is not supported in the current version of SharePoint.")> _
Public Sub CopyTo ( _
    array As SPSite(), _
    arrayIndex As Integer _
)
'Usage
Dim instance As SPMigratableSiteCollection
Dim array As SPSite()
Dim arrayIndex As Integer

instance.CopyTo(array, arrayIndex)
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
[ObsoleteAttribute("Gradual Upgrade is not supported in the current version of SharePoint.")]
public void CopyTo(
    SPSite[] array,
    int arrayIndex
)

Parameters

  • array
    Type: []

    The array of SPSite objects to which to copy the collection.

  • arrayIndex
    Type: System.Int32

    A 32-bit integer specifying the array index at which to start copying the collection.

Implements

ICollection<T>.CopyTo([], Int32)

See also

Reference

SPMigratableSiteCollection class

SPMigratableSiteCollection members

Microsoft.SharePoint.Administration namespace