SPSolution.IBackupRestore.OnRestore method
還原系統時,會呼叫事件。
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Private Function OnRestore ( _
sender As Object, _
info As SPRestoreInformation _
) As Boolean Implements IBackupRestore.OnRestore
'用途
Dim instance As SPSolution
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
Type: System.Object呼叫此事件物件。
info
Type: Microsoft.SharePoint.Administration.Backup.SPRestoreInformation還原方案的資訊。
傳回值
Type: System.Boolean
會傳回true如果還原成功 ;否則,請false。
Implements
IBackupRestore.OnRestore(Object, SPRestoreInformation)
備註
此函數不應該呼叫來備份與還原程序以外的任何項目。