다음을 통해 공유


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)
Available in Sandboxed Solutions: No

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