SPDatabaseSnapshot.Delete 方法 (Boolean)
从Microsoft SQL Server数据库中删除数据库快照。
命名空间: Microsoft.SharePoint.Administration.Backup
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public Sub Delete ( _
force As Boolean _
)
用法
Dim instance As SPDatabaseSnapshot
Dim force As Boolean
instance.Delete(force)
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public void Delete(
bool force
)
参数
force
类型:System.Booleantrue从目标中删除快照。默认值为true。
异常
异常 | 条件 |
---|---|
SPException | force参数是false。 |