SPSolution.IBackupRestore.OnBackup method
備份系統時所呼叫的事件。
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Private Function OnBackup ( _
sender As Object, _
info As SPBackupInformation _
) As Boolean Implements IBackupRestore.OnBackup
'用途
Dim instance As SPSolution
Dim sender As Object
Dim info As SPBackupInformation
Dim returnValue As Boolean
returnValue = CType(instance, IBackupRestore).OnBackup(sender, _
info)
boolIBackupRestore.OnBackup(
Object sender,
SPBackupInformation info
)
參數
sender
Type: System.Object會呼叫事件物件。
info
Type: Microsoft.SharePoint.Administration.Backup.SPBackupInformation備份方案的資訊。
傳回值
Type: System.Boolean
會傳回true如果順利 ; 完成備份否則,請false。
Implements
IBackupRestore.OnBackup(Object, SPBackupInformation)
備註
此函數不應該呼叫來備份與還原程序以外的任何項目。