Freigeben über


SPDiagnosticsServiceBase.OnBackup-Methode

Löst das Ereignis Sicherung aus.

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

Syntax

'Declaration
Public Overridable Function OnBackup ( _
    sender As Object, _
    info As SPBackupInformation _
) As Boolean
'Usage
Dim instance As SPDiagnosticsServiceBase
Dim sender As Object
Dim info As SPBackupInformation
Dim returnValue As Boolean

returnValue = instance.OnBackup(sender, _
    info)
public virtual bool OnBackup(
    Object sender,
    SPBackupInformation info
)

Parameter

  • sender
    Typ: System.Object

    Das Objekt, das die SPDiagnosticsServiceBase darstellt, die gesichert wird.

Rückgabewert

Typ: System.Boolean
true bei erfolgreicher; andernfalls false.

Implementiert

IBackupRestore.OnBackup(Object, SPBackupInformation)

Hinweise

Diese Implementierung immer "true" zurückgibt.

Diese Methode ist nur für die direkte Verwendung von schwerwiegenden Sicherung aufgerufen werden und Wiederherstellen von Infrastrukturcode in SharePoint Foundation.

Siehe auch

Referenz

SPDiagnosticsServiceBase Klasse

SPDiagnosticsServiceBase-Member

Microsoft.SharePoint.Administration-Namespace