ReportingService2006.SetReportHistoryLimit(String, Boolean, Int32) 方法

定义

指定报表服务器在报表服务器数据库中保留的某个报表的快照的数量。

public:
 void SetReportHistoryLimit(System::String ^ Report, bool UseSystem, int HistoryLimit);
public void SetReportHistoryLimit (string Report, bool UseSystem, int HistoryLimit);
member this.SetReportHistoryLimit : string * bool * int -> unit
Public Sub SetReportHistoryLimit (Report As String, UseSystem As Boolean, HistoryLimit As Integer)

参数

Report
String

报表的完全限定 URL,其中包括文件名和 .rdl 文件扩展名。

UseSystem
Boolean

一个Boolean表达式,在该表达式设置为 true 时,将报表历史记录限制值设置为当前系统报表历史记录限制值。 值 指示 false 报表历史记录限制对应于 参数中 HistoryLimit 提供的值。

HistoryLimit
Int32

为报表存储的报表历史记录快照的最大数目。 值介于 -12,147,483,647 之间。 如果将此值设置为 –1 ,则保存所有报表快照。

注解

下表显示了有关此操作的标头和权限信息。

SOAP 标头 (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
所需的权限 <xref:Microsoft.SharePoint.SPBasePermissions.EditListItems>

如果 参数 UseSystem 设置为 true,则报表服务器将 HistoryLimit 忽略 参数。

注意

如果 的值 HistoryLimit 发生更改,可能会删除报表历史记录快照。

适用于