Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Provides post restoration processing after the content database is restored from one of its snapshots.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Sub OnPostRestore ( _
args As SPDatabaseSnapshotRestoreEvent _
)
'Usage
Dim instance As SPContentDatabase
Dim args As SPDatabaseSnapshotRestoreEvent
instance.OnPostRestore(args)
public void OnPostRestore(
SPDatabaseSnapshotRestoreEvent args
)
Parameters
args
Type: Microsoft.SharePoint.Administration.Backup.SPDatabaseSnapshotRestoreEventAn object that contains a reference to the snapshot from which the database is restored.
Implements
IDatabaseSnapshotRestore.OnPostRestore(SPDatabaseSnapshotRestoreEvent)
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | args is a null reference (Nothing in Visual Basic). |
Remarks
This implementation sets the database back online.
This overload is called by the restoration infrastructure only when the source of the backup data is a snapshot. If the source is a backup copy of the database, the overload OnPostRestore(Object, SPRestoreInformation) is called.
Do not call this method from your own code. The restoration process calls it.