ReportingService2005.SetReportHistoryLimit(String, Boolean, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指定报表服务器在报表服务器数据库中保留的某个报表的快照的数量。
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
报表的完整路径名。
- UseSystem
- Boolean
一个Boolean
表达式,在该表达式设置为 true
时,将报表历史记录限制值设置为当前系统报表历史记录限制值。 值 指示 false
报表历史记录限制对应于 参数中 HistoryLimit
提供的值。
- HistoryLimit
- Int32
为报表存储的报表历史记录快照的最大数目。 值介于 -1
到 2,147,483,647
之间。 如果将此值设置为 –1
,则保存所有报表快照。
注解
下表显示了有关此操作的标头和权限信息。
SOAP 标头 | (In) BatchHeaderValue (Out) ServerInfoHeaderValue |
所需的权限 | UpdatePolicy |
如果 参数 UseSystem
设置为 true
,则报表服务器将 HistoryLimit
忽略 参数。
注意
如果 的值 HistoryLimit
已更改,可能会删除报表历史记录快照。