共用方式為


SPBackupRestoreConsole.GetHistory Method (String, Boolean)

Gets a list of all backup operations made to the specified location or all restore operations made from the location.

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

Syntax

'Declaration
Public Shared Function GetHistory ( _
    directory As String, _
    isBackup As Boolean _
) As SPBackupRestoreHistoryList
'Usage
Dim directory As String
Dim isBackup As Boolean
Dim returnValue As SPBackupRestoreHistoryList

returnValue = SPBackupRestoreConsole.GetHistory(directory, _
    isBackup)
public static SPBackupRestoreHistoryList GetHistory(
    string directory,
    bool isBackup
)

Parameters

  • isBackup
    Type: System.Boolean

    true to list the backup operations; false to list the restore operations.

Return Value

Type: Microsoft.SharePoint.Administration.Backup.SPBackupRestoreHistoryList
A SPBackupRestoreHistoryList that represents either all the backups or all the restore operations associated with directory.

See Also

Reference

SPBackupRestoreConsole Class

SPBackupRestoreConsole Members

GetHistory Overload

Microsoft.SharePoint.Administration.Backup Namespace