SPContentDatabase.RefreshSitesInConfigurationDatabase method
SharePoint 2013
Synchronizes the content database with the configuration database of the farm with respect to what site collections actually exist in the content database.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)