Share via


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)

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.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.

See also

Reference

SPSiteCollection class

SPSiteCollection members

Restore overload

Microsoft.SharePoint.Administration namespace