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
)
參數
directory
Type: System.String備份的目錄。
isBackup
Type: System.Boolean若要列出的備份作業 ; true若要列出的還原作業false 。
傳回值
Type: Microsoft.SharePoint.Administration.Backup.SPBackupRestoreHistoryList
SPBackupRestoreHistoryList 表示所有備份或directory相關聯的所有還原作業。