Compartilhar via


SPDatabaseSnapshot.Delete Method

Deletes the database snapshot permanently 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
'Usage
Dim instance As SPDatabaseSnapshot

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

Remarks

Once it has been deleted with this method, the snapshot cannot be restored.

See Also

Reference

SPDatabaseSnapshot Class

SPDatabaseSnapshot Members

Delete Overload

Microsoft.SharePoint.Administration.Backup Namespace