SPSecurityTokenServiceManager.IBackupRestore.OnPreRestore method
系統會準備還原作業時,會呼叫事件。
Namespace: Microsoft.SharePoint.Administration.Claims
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Private Function OnPreRestore ( _
sender As Object, _
args As SPRestoreInformation _
) As Boolean Implements IBackupRestore.OnPreRestore
'用途
Dim instance As SPSecurityTokenServiceManager
Dim sender As Object
Dim args As SPRestoreInformation
Dim returnValue As Boolean
returnValue = CType(instance, IBackupRestore).OnPreRestore(sender, _
args)
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
boolIBackupRestore.OnPreRestore(
Object sender,
SPRestoreInformation args
)
參數
- sender
Type: System.Object
args
Type: Microsoft.SharePoint.Administration.Backup.SPRestoreInformation包含事件的相關資料SPBackupRestoreInformation物件。
傳回值
Type: System.Boolean
true如果順利 ; 已準備還原否則,請false。
Implements
IBackupRestore.OnPreRestore(Object, SPRestoreInformation)
請參閱
參照
SPSecurityTokenServiceManager class