SPIisWebServiceApplication.IBackupRestore.OnRestore 方法
引发还原事件。
命名空间: Microsoft.SharePoint.Administration
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
Private Function OnRestore ( _
sender As Object, _
info As SPRestoreInformation _
) As Boolean Implements IBackupRestore.OnRestore
用法
Dim instance As SPIisWebServiceApplication
Dim sender As Object
Dim info As SPRestoreInformation
Dim returnValue As Boolean
returnValue = CType(instance, IBackupRestore).OnRestore(sender, _
info)
boolIBackupRestore.OnRestore(
Object sender,
SPRestoreInformation info
)
参数
sender
类型:System.Object一个对象,表示正在还原的 Web 服务应用程序。
info
类型:Microsoft.SharePoint.Administration.Backup.SPRestoreInformation一个SPRestoreInformation对象,它包含有关该事件的数据。
返回值
类型:System.Boolean
true如果成功 ;否则为false。
实现
IBackupRestore.OnRestore(Object, SPRestoreInformation)
备注
此成员是显式接口成员实现。仅在SPIisWebServiceApplication实例被强制转换为IBackupRestore接口时,才可以使用它。
此方法仅用于调用从灾难性的备份和恢复基础结构代码在SharePoint Foundation中。