共用方式為


SPBackupRestoreConsole.GetHistory method (String, Boolean)

會取得所有的備份作業對指定的位置或從位置所做的所有還原作業的清單。

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

Syntax

'宣告
Public Shared Function GetHistory ( _
    directory As String, _
    isBackup As Boolean _
) As SPBackupRestoreHistoryList
'用途
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
)

參數

  • isBackup
    Type: System.Boolean

    若要列出的備份作業 ; true若要列出的還原作業false 。

傳回值

Type: Microsoft.SharePoint.Administration.Backup.SPBackupRestoreHistoryList
SPBackupRestoreHistoryList 表示所有備份或directory相關聯的所有還原作業。

請參閱

參照

SPBackupRestoreConsole class

SPBackupRestoreConsole members

GetHistory overload

Microsoft.SharePoint.Administration.Backup namespace