ReportingService2010.SetItemHistoryOptions(String, Boolean, Boolean, ScheduleDefinitionOrReference) ReportingService2010.SetItemHistoryOptions(String, Boolean, Boolean, ScheduleDefinitionOrReference) 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. 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);
Public Sub SetItemHistoryOptions (ItemPath As String, EnableManualSnapshotCreation As Boolean, KeepExecutionSnapshots As Boolean, Item As ScheduleDefinitionOrReference)
Parameters
ItemPath
String String String

The fully qualified URL of the item including the file name and, in SharePoint mode, the extension.

EnableManualSnapshotCreation
Boolean Boolean Boolean

Indicates whether item history snapshots can be created through the Web service CreateItemHistorySnapshot(String, Warning[]) method. The default value is true.

KeepExecutionSnapshots
Boolean Boolean Boolean

Indicates whether item execution snapshots are collected for item history. The default value is false.

Item
ScheduleDefinitionOrReference ScheduleDefinitionOrReference ScheduleDefinitionOrReference

The ScheduleDefinition or ScheduleReference object that represents the schedule information for the item history snapshot. If the item 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 Header Usage (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
Native Mode Required Permissions UpdatePolicy AND CreateSnapshot
SharePoint Mode Required Permissions <xref:Microsoft.SharePoint.SPBasePermissions.EditListItems>

Applies to