SPDatabase.OnPreRestore method
Gera o evento PreRestore.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
'Declaração
Public Overridable Function OnPreRestore ( _
sender As Object, _
info As SPRestoreInformation _
) As Boolean
'Uso
Dim instance As SPDatabase
Dim sender As Object
Dim info As SPRestoreInformation
Dim returnValue As Boolean
returnValue = instance.OnPreRestore(sender, _
info)
public virtual bool OnPreRestore(
Object sender,
SPRestoreInformation info
)
sender
Type: System.ObjectUm object que representa o banco de dados que está sendo restaurado.
info
Type: Microsoft.SharePoint.Administration.Backup.SPRestoreInformationUm objeto SPRestoreInformation que contém dados sobre o evento.
Type: System.Boolean
true se for bem-sucedida; Caso contrário, false.
IBackupRestore.OnPreRestore(Object, SPRestoreInformation)
Este método é destinado apenas para ser chamado a partir de backup grave e restaurar código de infra-estrutura no SharePoint Foundation.