다음을 통해 공유


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