Partilhar via


SPJobDefinition.OnBackup Method

Called when the system is being backed up.

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

Syntax

'Declaration
Public Overridable Function OnBackup ( _
    sender As Object, _
    info As SPBackupInformation _
) As Boolean
'Usage
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
)

Parameters

Return Value

Type: System.Boolean
true if backup is successfully completed.

Implements

IBackupRestore.OnBackup(Object, SPBackupInformation)

Remarks

This method should be called only by the backup/restore process.

See Also

Reference

SPJobDefinition Class

SPJobDefinition Members

Microsoft.SharePoint.Administration Namespace