Compartilhar via


SPSolution.IBackupRestore.OnPreRestore Method

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

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

Syntax

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

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

Parameters

  • sender
    Type: System.Object

    The object that is calling this event.

Return Value

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

Implements

IBackupRestore.OnPreRestore(Object, SPRestoreInformation)

Remarks

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

See Also

Reference

SPSolution Class

SPSolution Members

Microsoft.SharePoint.Administration Namespace