SearchAdminDatabase.OnRestore method

Provides the method that is called when the database is being restored.

Namespace:  Microsoft.Office.Server.Search.Administration
Assembly:  Microsoft.Office.Server.Search (in Microsoft.Office.Server.Search.dll)

Syntax

'Declaration
Public Overrides Function OnRestore ( _
    sender As Object, _
    args As SPRestoreInformation _
) As Boolean
'Usage
Dim instance As SearchAdminDatabase
Dim sender As Object
Dim args As SPRestoreInformation
Dim returnValue As Boolean

returnValue = instance.OnRestore(sender, _
    args)
public override bool OnRestore(
    Object sender,
    SPRestoreInformation args
)

Parameters

  • sender
    Type: System.Object

    The database that is being restored.

Return value

Type: System.Boolean
true if successful; otherwise, false.

Implements

IBackupRestore.OnRestore(Object, SPRestoreInformation)

Remarks

This method overrides the OnRestore(Object, SPRestoreInformation) method in the IBackupRestore interface.

See also

Reference

SearchAdminDatabase class

SearchAdminDatabase members

Microsoft.Office.Server.Search.Administration namespace