ReportingService2010.SetItemHistoryOptions(String, Boolean, Boolean, ScheduleDefinitionOrReference) Method

Definition

设置项历史记录选项,这些选项指定何时为指定的目录项创建项历史记录快照。Sets item history options that specify when an item history snapshot is created for a specified catalog item. 此方法适用于Report项类型。This method applies to the Report item type.

public:
 void SetItemHistoryOptions(System::String ^ ItemPath, bool EnableManualSnapshotCreation, bool KeepExecutionSnapshots, ReportService2010::ScheduleDefinitionOrReference ^ Item);
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetItemHistoryOptions", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
[System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
public void SetItemHistoryOptions (string ItemPath, bool EnableManualSnapshotCreation, bool KeepExecutionSnapshots, ReportService2010.ScheduleDefinitionOrReference Item);
member this.SetItemHistoryOptions : string * bool * bool * ReportService2010.ScheduleDefinitionOrReference -> unit
Public Sub SetItemHistoryOptions (ItemPath As String, EnableManualSnapshotCreation As Boolean, KeepExecutionSnapshots As Boolean, Item As ScheduleDefinitionOrReference)

Parameters

ItemPath
String

项的完全限定 URL,其中包括文件名(在 SharePoint 模式下,还有扩展名)。The fully qualified URL of the item including the file name and, in SharePoint mode, the extension.

EnableManualSnapshotCreation
Boolean

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

KeepExecutionSnapshots
Boolean

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

Item
ScheduleDefinitionOrReference

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

Attributes

Remarks

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

SOAP 标头用法SOAP Header Usage (In) TrustedUserHeaderValue(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue(Out) ServerInfoHeaderValue
纯模式所需的权限Native Mode Required Permissions UpdatePolicyCreateSnapshotUpdatePolicy AND CreateSnapshot
SharePoint 模式所需的权限SharePoint Mode Required Permissions EditListItems

Applies to