This documentation is archived and is not being maintained.

SPSiteCollection.Restore Method (String, String, Boolean)

Windows SharePoint Services 3

Restores the specified SPSite object to the collection.

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

public void Restore(
	string strSiteUrl,
	string strFilename,
	bool bOverwrite
)

Parameters

strSiteUrl
Type: System.String
A string that contains the URL to which to restore the site collection.
strFilename
Type: System.String
A string that contains the name of the backup file.
bOverwrite
Type: System.Boolean
true if the site collection object should be overwritten; otherwise, false.
Show: