Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Restores the deleted site.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub Restore
'Usage
Dim instance As SPDeletedSite
instance.Restore()
public void Restore()
Exceptions
| Exception | Condition |
|---|---|
| FileNotFoundException | There is no content database for the deleted site. -or- The deleted site is gone. |
| NotSupportedException | Neither the content database nor the configuration database supports restoring the site. |
| SPException | The restored site already exists. |
| SecurityException | The current user is not the farm administrator. |
Remarks
This method restores this deleted site from the deleted site table.