SPContentDatabase.Move method (SPContentDatabase, List<SPSite>, Dictionary<SPSite, String>)
Moves the specified sites from this content database to the specified content database.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub Move ( _
destinationDb As SPContentDatabase, _
sitesToMove As List(Of SPSite), _
<OutAttribute> ByRef failedSites As Dictionary(Of SPSite, String) _
)
'Usage
Dim instance As SPContentDatabase
Dim destinationDb As SPContentDatabase
Dim sitesToMove As List(Of SPSite)
Dim failedSites As Dictionary(Of SPSite, String)
instance.Move(destinationDb, sitesToMove, _
failedSites)
public void Move(
SPContentDatabase destinationDb,
List<SPSite> sitesToMove,
out Dictionary<SPSite, string> failedSites
)
Parameters
destinationDb
Type: Microsoft.SharePoint.Administration.SPContentDatabaseThe destination content database.
sitesToMove
Type: System.Collections.Generic.List<SPSite>The list of sites to move.
failedSites
Type: System.Collections.Generic.Dictionary<SPSite, String>When this method returns, contains a dictionary of the sites that failed to be moved.
Remarks
This method calls the Move(SPContentDatabase, List<SPSite>, Dictionary<String, String>, Dictionary<SPSite, String>) with null as the third parameter method to move the specified site collection from this content database to the specified destination content database.