SPSecurityTokenServiceManager.IBackupRestore.OnPreRestore method
The event that is called when the system is preparing a restore operation.
Namespace: Microsoft.SharePoint.Administration.Claims
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Private Function OnPreRestore ( _
sender As Object, _
args As SPRestoreInformation _
) As Boolean Implements IBackupRestore.OnPreRestore
'Usage
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
)
Parameters
- sender
Type: System.Object
args
Type: Microsoft.SharePoint.Administration.Backup.SPRestoreInformationAn SPBackupRestoreInformation object that contains data about the event.
Return value
Type: System.Boolean
true if the restore is prepared successfully; otherwise, false.
Implements
IBackupRestore.OnPreRestore(Object, SPRestoreInformation)
See also
Reference
SPSecurityTokenServiceManager class