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
)

Parameters

destinationDb
Type: Microsoft.SharePoint.Administration.SPContentDatabase

The destination content database.

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

The list of sites to move.

rbsProviderMap
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 .

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

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

ExceptionCondition
ArgumentNullException

destinationDb is null .

SPException

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

-or-

The destination content database is the current content database.

-or-

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.

Show:
© 2014 Microsoft