SPContentDatabase.OnPreRestore, méthode (Microsoft.SharePoint.Administration)
Called before restoration of the specified content database begins. This method implements the OnPreRestore method that is defined in the Microsoft.SharePoint.Administration.Backup.IBackupRestore interface. The SPContentDatabase class can be backed up and restored and must therefore implement the Microsoft.SharePoint.Administration.Backup.IBackupRestore interface; however, this method should only be called from Windows SharePoint Services catastrophic backup and restore infrastructure code.
Espace de noms : Microsoft.SharePoint.Administration
Assembly : Microsoft.SharePoint (dans microsoft.sharepoint.dll)
Syntaxe
'Déclaration
Public Overrides Function OnPreRestore ( _
sender As Object, _
args As SPRestoreInformation _
) As Boolean
'Utilisation
Dim instance As SPContentDatabase
Dim sender As Object
Dim args As SPRestoreInformation
Dim returnValue As Boolean
returnValue = instance.OnPreRestore(sender, args)
public override bool OnPreRestore (
Object sender,
SPRestoreInformation args
)
Paramètres
- sender
An SPContentDatabase object that represents the content database that is being restored.
- args
An SPRestoreInformation object that contains data about the event.
Valeur retournée
true if successful; otherwise, false.
Voir aussi
Référence
SPContentDatabase, classe
Membres SPContentDatabase
Microsoft.SharePoint.Administration, espace de noms