SPRestoreSettings.RestoreMethod property

Gets or sets a value indicating whether the restore overwrites the existing database if it already exists on the target.

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

Syntax

'Declaration
Public Property RestoreMethod As SPRestoreMethodType
    Get
    Set
'Usage
Dim instance As SPRestoreSettings
Dim value As SPRestoreMethodType

value = instance.RestoreMethod

instance.RestoreMethod = value
public SPRestoreMethodType RestoreMethod { get; set; }

Property value

Type: Microsoft.SharePoint.Administration.Backup.SPRestoreMethodType
A SPRestoreMethodType that indicates whether the restore operation should overwrite the SharePoint database if it exists on the target. The default is None.

See also

Reference

SPRestoreSettings class

SPRestoreSettings members

Microsoft.SharePoint.Administration.Backup namespace