SPBackupRestoreHistoryList class
清單中的過去的備份和還原作業 (包括的失敗或已取消之前完成) 的特定備份的位置。
Inheritance hierarchy
System.Object
Microsoft.SharePoint.Administration.Backup.SPBackupRestoreHistoryList
Namespace: Microsoft.SharePoint.Administration.Backup
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
Public NotInheritable Class SPBackupRestoreHistoryList
'用途
Dim instance As SPBackupRestoreHistoryList
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class SPBackupRestoreHistoryList
備註
在清單中的項目是SPBackupRestoreHistoryObject的物件。
有此類別不 public 建構函式。使用GetHistory方法取得此類別的物件參考。
此類別的物件會保存為位於CurrentBackupXml檔案spbrtoc.xml 。根據預設,這會是備份位置的根目錄。
Examples
以下是兩個備份作業,一個用於管理中心應用程式及內容資料庫的一般SharePoint Foundation Web 應用程式的其他的內容資料庫的記錄spbrtoc.xml檔案的範例。
<?xml version="1.0" encoding="utf-8"?>
<SPBackupRestoreHistory>
<SPHistoryObject>
<SPId>33bda4d7-2b18-408e-8b54-e3a050e085e9</SPId>
<SPRequestedBy>FABRIKAM\sally</SPRequestedBy>
<SPBackupMethod>Full</SPBackupMethod>
<SPRestoreMethod>None</SPRestoreMethod>
<SPStartTime>10/08/2007 20:35:47</SPStartTime>
<SPFinishTime>10/08/2007 20:35:55</SPFinishTime>
<SPIsBackup>True</SPIsBackup>
<SPBackupDirectory>\\server01\WSSBackups\spbr0002\</SPBackupDirectory>
<SPDirectoryName>spbr0002</SPDirectoryName>
<SPDirectoryNumber>2</SPDirectoryNumber>
<SPTopComponent>Farm\WSS_Administration\Web Application\SharePoint_AdminContent_d86ba3d1-cce5-4391-8135-fae450dd8332</SPTopComponent>
<SPTopComponentId>a80e3734-75b3-4c7c-b04f-d6003ac3045f</SPTopComponentId>
<SPWarningCount>0</SPWarningCount>
<SPErrorCount>0</SPErrorCount>
</SPHistoryObject>
<SPHistoryObject>
<SPId>b3aded39-25c8-48ba-b68e-ac4624536dba</SPId>
<SPRestoreId>1c8fd1e6-cc2d-4500-9316-3b967934ddbd</SPRestoreId>
<SPRequestedBy>FABRIKAM\bob</SPRequestedBy>
<SPBackupMethod>Full</SPBackupMethod>
<SPRestoreMethod>Overwrite</SPRestoreMethod>
<SPStartTime>10/08/2007 20:20:13</SPStartTime>
<SPFinishTime>10/08/2007 20:20:29</SPFinishTime>
<SPIsBackup>False</SPIsBackup>
<SPBackupDirectory>\\server01\WSSBackups\spbr0000\</SPBackupDirectory>
<SPDirectoryName />
<SPTopComponent>Farm\Windows SharePoint Services Web Application\SharePoint - 42712\WSS_Content_3cfae446821e442a8300185e58423876</SPTopComponent>
<SPTopComponentId>88c72a5d-08c9-4ee9-9f6a-3cfc3ab7d359</SPTopComponentId>
<SPWarningCount>0</SPWarningCount>
<SPErrorCount>0</SPErrorCount>
</SPHistoryObject>
</SPBackupRestoreHistory>
Thread safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.