共用方式為


SPDatabase.OnPreRestore method

會引發 PreRestore 事件。

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

Syntax

'宣告
Public Overridable Function OnPreRestore ( _
    sender As Object, _
    info As SPRestoreInformation _
) As Boolean
'用途
Dim instance As SPDatabase
Dim sender As Object
Dim info As SPRestoreInformation
Dim returnValue As Boolean

returnValue = instance.OnPreRestore(sender, _
    info)
public virtual bool OnPreRestore(
    Object sender,
    SPRestoreInformation info
)

參數

  • sender
    Type: System.Object

    object表示要還原的資料庫。

傳回值

Type: System.Boolean
true如果成功 ;否則,請false。

Implements

IBackupRestore.OnPreRestore(Object, SPRestoreInformation)

備註

此方法僅適用對象呼叫重大災害備份及還原SharePoint Foundation中的基礎結構程式碼。

請參閱

參照

SPDatabase class

SPDatabase members

Microsoft.SharePoint.Administration namespace