SPUserCodeProvider.OnRestore method
會還原事件。
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Overridable Function OnRestore ( _
sender As Object, _
info As SPRestoreInformation _
) As Boolean
'用途
Dim instance As SPUserCodeProvider
Dim sender As Object
Dim info As SPRestoreInformation
Dim returnValue As Boolean
returnValue = instance.OnRestore(sender, _
info)
public virtual bool 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)
備註
這項實作一律會傳回true。
此方法僅適用對象是可呼叫從重大災害備份及還原SharePoint Foundation中的基礎結構程式碼。