SPSolutionCollection.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 SPSolutionCollection
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

    正在调用该事件的对象。

返回值

类型:System.Boolean
返回true还原是否成功 ;否则为false。

实现

IBackupRestore.OnRestore(Object, SPRestoreInformation)

备注

此函数不应调用任何除备份和还原过程。

另请参阅

引用

SPSolutionCollection 类

SPSolutionCollection 成员

Microsoft.SharePoint.Administration 命名空间