ReportingService2005.SetReportHistoryOptions 方法

定义

设置报表历史记录选项,这些选项指定何时为指定的报表创建报表历史记录快照。

public:
 void SetReportHistoryOptions(System::String ^ Report, bool EnableManualSnapshotCreation, bool KeepExecutionSnapshots, ReportService2005::ScheduleDefinitionOrReference ^ Item);
public void SetReportHistoryOptions (string Report, bool EnableManualSnapshotCreation, bool KeepExecutionSnapshots, ReportService2005.ScheduleDefinitionOrReference Item);
member this.SetReportHistoryOptions : string * bool * bool * ReportService2005.ScheduleDefinitionOrReference -> unit
Public Sub SetReportHistoryOptions (Report As String, EnableManualSnapshotCreation As Boolean, KeepExecutionSnapshots As Boolean, Item As ScheduleDefinitionOrReference)

参数

Report
String

报表的完整路径名。

EnableManualSnapshotCreation
Boolean

指示是否可以通过 Web 服务 CreateReportHistorySnapshot(String, Warning[]) 方法创建报表历史记录快照。 默认值为 true

KeepExecutionSnapshots
Boolean

指示是否为报表历史记录收集报表执行快照。 默认值为 false

Item
ScheduleDefinitionOrReference

表示报表历史记录快照的计划信息的 ScheduleDefinition 对象或 ScheduleReference 对象。 如果没有按照计划创建报表历史记录快照,请为此参数传递 NoSchedule 对象。

注解

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

SOAP 标头 (In) BatchHeaderValue

(Out) ServerInfoHeaderValue
所需的权限 UpdatePolicyCreateSnapshot

适用于