Share via


SPJobDefinition.OnBackup method

Called when the system is being backed up.

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

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