共用方式為


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
)

參數

傳回值

Type: System.Boolean
會傳回true如果順利 ; 完成備份否則,請false。

Implements

IBackupRestore.OnBackup(Object, SPBackupInformation)

備註

此函數不應該呼叫來備份與還原程序以外的任何項目。

請參閱

參照

SPSolution class

SPSolution members

Microsoft.SharePoint.Administration namespace