共用方式為


SPSolution.IBackupRestore.OnPreRestore method

系統會準備還原作業時,會呼叫事件。

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Private Function OnPreRestore ( _
    sender As Object, _
    info As SPRestoreInformation _
) As Boolean Implements IBackupRestore.OnPreRestore
'用途
Dim instance As SPSolution
Dim sender As Object
Dim info As SPRestoreInformation
Dim returnValue As Boolean

returnValue = CType(instance, IBackupRestore).OnPreRestore(sender, _
    info)
boolIBackupRestore.OnPreRestore(
    Object sender,
    SPRestoreInformation info
)

參數

傳回值

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

Implements

IBackupRestore.OnPreRestore(Object, SPRestoreInformation)

備註

此函數不會呼叫來備份以外的任何項目及還原程序並一定會傳回true。

請參閱

參照

SPSolution class

SPSolution members

Microsoft.SharePoint.Administration namespace