SPWebApplication.OnRestore - Méthode
Déclenche l'événement de restauration.
Espace de noms : Microsoft.SharePoint.Administration
Assembly : Microsoft.SharePoint (dans Microsoft.SharePoint.dll)
Syntaxe
'Déclaration
Public Overridable Function OnRestore ( _
sender As Object, _
args As SPRestoreInformation _
) As Boolean
'Utilisation
Dim instance As SPWebApplication
Dim sender As Object
Dim args As SPRestoreInformation
Dim returnValue As Boolean
returnValue = instance.OnRestore(sender, _
args)
public virtual bool OnRestore(
Object sender,
SPRestoreInformation args
)
Paramètres
sender
Type : System.ObjectSPWebApplication est en cours de restauration.
args
Type : Microsoft.SharePoint.Administration.Backup.SPRestoreInformationObjet SPRestoreInformation qui contient les données relatives à l'événement.
Valeur renvoyée
Type : System.Boolean
true en cas de réussite ; dans le cas contraire, false.
Implémentations
IBackupRestore.OnRestore(Object, SPRestoreInformation)
Remarques
Cette méthode est uniquement destinée à être appelée à partir de la sauvegarde catastrophique SharePoint Foundation et restaurer le code de l'infrastructure.