다음을 통해 공유


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