ReportingService2005.SetReportHistoryOptions(String, Boolean, Boolean, ScheduleDefinitionOrReference) Method

Definition

设置报表历史记录选项,这些选项指定何时为指定的报表创建报表历史记录快照。Sets report history options that specify when a report history snapshot is created for a specified report.

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)

Parameters

Report
String

报表的完整路径名。The full path name of the report.

EnableManualSnapshotCreation
Boolean

指示是否可以通过 Web 服务 CreateReportHistorySnapshot(String, Warning[]) 方法创建报表历史记录快照。Indicates whether report history snapshots can be created through the Web service CreateReportHistorySnapshot(String, Warning[]) method. 默认值为 trueThe default value is true.

KeepExecutionSnapshots
Boolean

指示是否为报表历史记录收集报表执行快照。Indicates whether report execution snapshots are collected for report history. 默认值为 falseThe default value is false.

Item
ScheduleDefinitionOrReference

表示报表历史记录快照的计划信息的 ScheduleDefinition 对象或 ScheduleReference 对象。The ScheduleDefinition object or ScheduleReference object that represents the schedule information for the report history snapshot. 如果没有按照计划创建报表历史记录快照,请为此参数传递 NoSchedule 对象。If the report history snapshot is not created according to a schedule, pass a NoSchedule object for this parameter.

Remarks

下表显示了有关此操作的标头和权限信息。The table below shows header and permissions information on this operation.

SOAP 标头SOAP Headers (In) BatchHeaderValue(In) BatchHeaderValue

(Out) ServerInfoHeaderValue(Out) ServerInfoHeaderValue
所需的权限Required Permissions UpdatePolicyCreateSnapshotUpdatePolicy AND CreateSnapshot

Applies to