SPSolutionCollection.IBackupRestore.OnBackup Method

An event that is 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
Private Function OnBackup ( _
    sender As Object, _
    info As SPBackupInformation _
) As Boolean Implements IBackupRestore.OnBackup
'Usage
Dim instance As SPSolutionCollection
Dim sender As Object
Dim info As SPBackupInformation
Dim returnValue As Boolean

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

Parameters

  • sender
    Type: System.Object

    The object that is called the event.

Return Value

Type: System.Boolean
Returns true if the backup was completed successfully; otherwise, false.

Implements

IBackupRestore.OnBackup(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