Share via


SPContentDatabase.RefreshSitesInConfigurationDatabase method

Synchronizes the content database with the configuration database of the farm with respect to what site collections actually exist in the content database.

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

Syntax

'Declaration
Public Sub RefreshSitesInConfigurationDatabase
'Usage
Dim instance As SPContentDatabase

instance.RefreshSitesInConfigurationDatabase()
public void RefreshSitesInConfigurationDatabase()

Remarks

Ensures that all site collections in the content database are registered in the configuration database and removes any site collection references in the configuration database if the site collection does not exist in the content database.

See also

Reference

SPContentDatabase class

SPContentDatabase members

Microsoft.SharePoint.Administration namespace