SPSecurityTokenServiceManager.IBackupRestore.OnRestore Method
The event that is called when the system is being restored.
Namespace: Microsoft.SharePoint.Administration.Claims
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Private Function OnRestore ( _
sender As Object, _
args As SPRestoreInformation _
) As Boolean Implements IBackupRestore.OnRestore
'Usage
Dim instance As SPSecurityTokenServiceManager
Dim sender As Object
Dim args As SPRestoreInformation
Dim returnValue As Boolean
returnValue = CType(instance, IBackupRestore).OnRestore(sender, _
args)
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
boolIBackupRestore.OnRestore(
Object sender,
SPRestoreInformation args
)
Parameters
sender
Type: System.ObjectThe object that is calling this event.
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 successful; otherwise, false.
Implements
IBackupRestore.OnRestore(Object, SPRestoreInformation)
See Also
Reference
SPSecurityTokenServiceManager Class