共用方式為


SPUserCodeProvider.OnAbort Method

Raises the Abort (backup or restore) event.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

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

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.

See Also

Reference

SPUserCodeProvider Class

SPUserCodeProvider Members

Microsoft.SharePoint.Administration Namespace