This documentation is archived and is not being maintained.

SPWebApplication.OnRestore Method

Windows SharePoint Services 3

Called when the Web application is being restored. This method implements the OnRestore method defined in the Microsoft.SharePoint.Administration.Backup.IBackupRestore interface. The SPWebApplication class can be backed up and restored and must therefore implement the Microsoft.SharePoint.Administration.Backup.IBackupRestore interface, but this method is only intended to be callable from Windows SharePoint Services catastrophic backup and restore infrastructure code.

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

public virtual bool OnRestore(
	Object sender,
	SPRestoreInformation args


Type: System.Object
The SPWebApplication that is being restored.
Type: Microsoft.SharePoint.Administration.Backup.SPRestoreInformation
An SPRestoreInformation object that contains data about the event.

Return Value

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


IBackupRestore.OnRestore(Object, SPRestoreInformation)