SPJobDefinition.OnBackup 方法

当正在备份系统时调用。

命名空间:  Microsoft.SharePoint.Administration
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public Overridable Function OnBackup ( _
    sender As Object, _
    info As SPBackupInformation _
) As Boolean
用法
Dim instance As SPJobDefinition
Dim sender As Object
Dim info As SPBackupInformation
Dim returnValue As Boolean

returnValue = instance.OnBackup(sender, _
    info)
public virtual bool OnBackup(
    Object sender,
    SPBackupInformation info
)

参数

返回值

类型:System.Boolean
true如果备份已成功完成。

实现

IBackupRestore.OnBackup(Object, SPBackupInformation)

备注

只能通过备份/恢复过程,则应调用此方法。

另请参阅

引用

SPJobDefinition 类

SPJobDefinition 成员

Microsoft.SharePoint.Administration 命名空间