SPUserCodeProvider.OnAbort method
Raises the Abort (backup or restore) event.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Function OnAbort ( _
sender As Object, _
info As SPBackupRestoreInformation _
) As Boolean
'Usage
Dim instance As SPUserCodeProvider
Dim sender As Object
Dim info As SPBackupRestoreInformation
Dim returnValue As Boolean
returnValue = instance.OnAbort(sender, _
info)
public bool OnAbort(
Object sender,
SPBackupRestoreInformation info
)
Parameters
sender
Type: System.ObjectThe object calling this method.
info
Type: Microsoft.SharePoint.Administration.Backup.SPBackupRestoreInformationThe backup or restore information for this object.
Return value
Type: System.Boolean
true if the abort operation is successful; otherwise, false.
Implements
IBackupRestore.OnAbort(Object, SPBackupRestoreInformation)
Remarks
This implementation always returns true.
This function should not be called by anything except the catastrophic backup and restore infrastructure in SharePoint Foundation. The method is called when a user cancels an operation.