ReportingService2010.SetItemHistoryOptions Method (String, Boolean, Boolean, ScheduleDefinitionOrReference)
Applies To: SQL Server 2016 Preview
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.
Namespace: ReportService2010
Assembly: ReportService2010 (in ReportService2010.dll)
Syntax
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetItemHistoryOptions",
RequestNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
ResponseNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
[SoapHeaderAttribute("TrustedUserHeaderValue")]
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
public void SetItemHistoryOptions(
string ItemPath,
bool EnableManualSnapshotCreation,
bool KeepExecutionSnapshots,
ScheduleDefinitionOrReference Item
)
public:
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetItemHistoryOptions",
RequestNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
ResponseNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
Use = SoapBindingUse::Literal, ParameterStyle = SoapParameterStyle::Wrapped)]
[SoapHeaderAttribute("TrustedUserHeaderValue")]
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
void SetItemHistoryOptions(
String^ ItemPath,
bool EnableManualSnapshotCreation,
bool KeepExecutionSnapshots,
ScheduleDefinitionOrReference^ Item
)
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetItemHistoryOptions",
RequestNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
ResponseNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)>]
[<SoapHeaderAttribute("TrustedUserHeaderValue")>]
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
member SetItemHistoryOptions :
ItemPath:string *
EnableManualSnapshotCreation:bool *
KeepExecutionSnapshots:bool *
Item:ScheduleDefinitionOrReference -> unit
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetItemHistoryOptions",
RequestNamespace := "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
ResponseNamespace := "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)>
<SoapHeaderAttribute("TrustedUserHeaderValue")>
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)>
Public Sub SetItemHistoryOptions (
ItemPath As String,
EnableManualSnapshotCreation As Boolean,
KeepExecutionSnapshots As Boolean,
Item As ScheduleDefinitionOrReference
)
Parameters
ItemPath
Type: System.StringThe fully qualified URL of the item including the file name and, in SharePoint mode, the extension.
EnableManualSnapshotCreation
Type: System.BooleanIndicates whether item history snapshots can be created through the Web service CreateItemHistorySnapshot method. The default value is true.
KeepExecutionSnapshots
Type: System.BooleanIndicates whether item execution snapshots are collected for item history. The default value is false.
Item
Type: ReportService2010.ScheduleDefinitionOrReferenceThe 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 |
(Out) ServerInfoHeaderValue |
Native Mode Required Permissions |
|
SharePoint Mode Required Permissions |
See Also
ReportingService2010 Class
ReportService2010 Namespace
Return to top