Share via


SPDatabaseSnapshot.Delete method (Boolean)

Drops the database snapshot from the Microsoft SQL Server database.

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

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public Sub Delete ( _
    force As Boolean _
)
'Usage
Dim instance As SPDatabaseSnapshot
Dim force As Boolean

instance.Delete(force)
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public void Delete(
    bool force
)

Parameters

  • force
    Type: System.Boolean

    true to delete the snapshot from the destination. The default is true.

Exceptions

Exception Condition
SPException

The force parameter is false.

See also

Reference

SPDatabaseSnapshot class

SPDatabaseSnapshot members

Delete overload

Microsoft.SharePoint.Administration.Backup namespace