Export (0) Print
Expand All

SPContentDatabase.Move Method (SPContentDatabase, List<SPSite>, Dictionary<String, String>, Dictionary<SPSite, String>)

Moves the specified sites from this content database to the specified content database and optionally specifies the source and destination storage providers.

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

public void Move(
	SPContentDatabase destinationDb,
	List<SPSite> sitesToMove,
	Dictionary<string, string> rbsProviderMap,
	out Dictionary<SPSite, string> failedSites


Type: Microsoft.SharePoint.Administration.SPContentDatabase

The destination content database.

Type: System.Collections.Generic.List<SPSite>

The list of sites to move.

Type: System.Collections.Generic.Dictionary<String, String>

The mapping of source to destination providers for remote blob storage for shallow copy. This parameter can be null .

Type: System.Collections.Generic.Dictionary<SPSite, String>

When this method returns, contains a dictionary of the sites that failed to be moved.


destinationDb is null .


This content database and the destination content database are not on the same server, or not in the same Web application.


The destination content database is the current content database.


The destination content database is full.

This method moves the specified site collection from this content database to the specified destination content database, using the map specified by the rbsProviderMap parameter that defines the mapping for remote blob storage providers between the source and destination database for the shallow copy operations, and saves the sites failed to be moved in the failedSites parameter.

© 2014 Microsoft