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
sender
Type: System.ObjectThe source of the event.
info
Type: Microsoft.SharePoint.Administration.Backup.SPBackupInformationThe backup information for this object.
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.