SPSolution.IBackupRestore.OnAbort Method
An event that is called in the backup and restore infrastructure when the user cancels the operation.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Private Function OnAbort ( _
sender As Object, _
info As SPBackupRestoreInformation _
) As Boolean Implements IBackupRestore.OnAbort
'Usage
Dim instance As SPSolution
Dim sender As Object
Dim info As SPBackupRestoreInformation
Dim returnValue As Boolean
returnValue = CType(instance, IBackupRestore).OnAbort(sender, _
info)
boolIBackupRestore.OnAbort(
Object sender,
SPBackupRestoreInformation info
)
Parameters
sender
Type: System.ObjectThe object that is calling the event.
info
Type: Microsoft.SharePoint.Administration.Backup.SPBackupRestoreInformationThe backup and restore information for the solution.
Return Value
Type: System.Boolean
Returns true if the backup and restore was aborted; otherwise, false otherwise.
Implements
IBackupRestore.OnAbort(Object, SPBackupRestoreInformation)
Remarks
This function should only be called by the backup and restore process.