Share via


SPSolutionCollection.IBackupRestore.OnPrepareBackup method

The event that is called when the system is preparing a backup operation.

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

Syntax

'Declaration
Private Function OnPrepareBackup ( _
    sender As Object, _
    info As SPBackupInformation _
) As Boolean Implements IBackupRestore.OnPrepareBackup
'Usage
Dim instance As SPSolutionCollection
Dim sender As Object
Dim info As SPBackupInformation
Dim returnValue As Boolean

returnValue = CType(instance, IBackupRestore).OnPrepareBackup(sender, _
    info)
boolIBackupRestore.OnPrepareBackup(
    Object sender,
    SPBackupInformation info
)

Parameters

  • sender
    Type: System.Object

    The object that is calling this event.

Return value

Type: System.Boolean
Returns true if the backup is prepared successfully; otherwise, false.

Implements

IBackupRestore.OnPrepareBackup(Object, SPBackupInformation)

Remarks

This function should not be called by anything except the backup and restore process.

See also

Reference

SPSolutionCollection class

SPSolutionCollection members

Microsoft.SharePoint.Administration namespace