SPSolutionCollection.IBackupRestore.OnRestore Method

The event that is called when the system is being restored.

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

Syntax

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

returnValue = CType(instance, IBackupRestore).OnRestore(sender, _
    info)
boolIBackupRestore.OnRestore(
    Object sender,
    SPRestoreInformation info
)

Parameters

  • sender
    Type: System.Object

    The object that is calling this event.

Return Value

Type: System.Boolean
Returns true if the restore is successful; otherwise, false.

Implements

IBackupRestore.OnRestore(Object, SPRestoreInformation)

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