SPSiteCollection.Restore Method (String, String, Boolean)
Restores the specified SPSite object to the collection.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Sub Restore ( _
strSiteUrl As String, _
strFilename As String, _
bOverwrite As Boolean _
)
'Usage
Dim instance As SPSiteCollection
Dim strSiteUrl As String
Dim strFilename As String
Dim bOverwrite As Boolean
instance.Restore(strSiteUrl, strFilename, _
bOverwrite)
public void Restore(
string strSiteUrl,
string strFilename,
bool bOverwrite
)
Parameters
strSiteUrl
Type: System.StringA string that contains the URL to which to restore the site collection.
strFilename
Type: System.StringA string that contains the name of the backup file.
bOverwrite
Type: System.Booleantrue if the site collection object should be overwritten; otherwise, false.