共用方式為


SPUserCodeProvider.OnAbort method

引發中止(備份或還原) 的事件。

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Function OnAbort ( _
    sender As Object, _
    info As SPBackupRestoreInformation _
) As Boolean
'用途
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
)

參數

傳回值

Type: System.Boolean
true中止作業已成功 ; 如果否則,請false。

Implements

IBackupRestore.OnAbort(Object, SPBackupRestoreInformation)

備註

這項實作一律會傳回true。

此函數不應由不要以外的重大災害備份和還原基礎結構中SharePoint Foundation呼叫。當使用者取消作業,會呼叫的方法。

請參閱

參照

SPUserCodeProvider class

SPUserCodeProvider members

Microsoft.SharePoint.Administration namespace