SPBackupRestoreHistoryList 类
过去的备份的列表并为一个特定的备份位置还原操作 (包括那些失败或完成前被取消)。
继承层次结构
System.Object
Microsoft.SharePoint.Administration.Backup.SPBackupRestoreHistoryList
命名空间: Microsoft.SharePoint.Administration.Backup
程序集: Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)
语法
声明
<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对象。
为此类没有公共构造函数。用GetHistory方法中获得对此类的对象的引用。
此类的对象将保持为位于CurrentBackupXml文件spbrtoc.xml 。默认情况下,这是备份位置的根。
示例
下面是记录两个备份操作,一个用于管理中心应用程序,另一个用于常规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>
线程安全性
该类型的任何公共 静态 (已共享 在 Visual Basic 中) 成员都是线程安全的。不保证任何实例成员都是线程安全的。