SPBackupRestoreHistoryObject class
代表單一目前或過去備份或還原作業。
Inheritance hierarchy
System.Object
Microsoft.SharePoint.Administration.Backup.SPBackupRestoreHistoryObject
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 SPBackupRestoreHistoryObject
'用途
Dim instance As SPBackupRestoreHistoryObject
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
public sealed class SPBackupRestoreHistoryObject
備註
作業開始時,會建立此類別的物件。如果取消作業,則歷程記錄物件仍會保留在歷程記錄清單 (由SPBackupRestoreHistoryList表示) 做為形成作業。
此類別有無 public 建構函式。使用SPBackupRestoreHistoryListItem屬性,取得SPBackupRestoreHistoryObject物件的參照。
此類別的物件保留為<SPHistoryObject>中檔案spbrtoc.xml備份位置的根目錄中的項目。
Examples
以下是範例<SPHistoryObject>元素的文字記錄SharePoint Foundation內容資料庫的備份。
<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>
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.