SetItemHistoryOptions 方法
设置项历史记录选项,这些选项指定何时为指定的目录项创建项历史记录快照。此方法适用于报表项类型。
命名空间: ReportService2010
程序集: ReportService2010(在 ReportService2010.dll 中)
语法
声明
<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 _
)
用法
Dim instance As ReportingService2010
Dim ItemPath As String
Dim EnableManualSnapshotCreation As Boolean
Dim KeepExecutionSnapshots As Boolean
Dim Item As ScheduleDefinitionOrReference
instance.SetItemHistoryOptions(ItemPath, _
EnableManualSnapshotCreation, KeepExecutionSnapshots, _
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)]
public void SetItemHistoryOptions(
string ItemPath,
bool EnableManualSnapshotCreation,
bool KeepExecutionSnapshots,
ScheduleDefinitionOrReference Item
)
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetItemHistoryOptions", RequestNamespace = L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
ResponseNamespace = L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
Use = SoapBindingUse::Literal, ParameterStyle = SoapParameterStyle::Wrapped)]
[SoapHeaderAttribute(L"TrustedUserHeaderValue")]
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
public:
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
public function SetItemHistoryOptions(
ItemPath : String,
EnableManualSnapshotCreation : boolean,
KeepExecutionSnapshots : boolean,
Item : ScheduleDefinitionOrReference
)
参数
- ItemPath
类型:System. . :: . .String
项的完全限定 URL,其中包括文件名(在 SharePoint 模式下,还有扩展名)。
- EnableManualSnapshotCreation
类型:System. . :: . .Boolean
指示是否可以通过 Web 服务 CreateItemHistorySnapshot 方法创建项历史记录快照。默认值为 true。
- KeepExecutionSnapshots
类型:System. . :: . .Boolean
指示是否为项历史记录收集项执行快照。默认值为 false。
- Item
类型:ReportService2010. . :: . .ScheduleDefinitionOrReference
表示项历史记录快照的计划信息的 ScheduleDefinition 或 ScheduleReference 对象。如果没有按照计划创建项历史记录快照,请为此参数传递 NoSchedule 对象。
注释
The table below shows header and permissions information on this operation.
SOAP Header Usage |
(Out) ServerInfoHeaderValue |
Native Mode Required Permissions |
|
SharePoint Mode Required Permissions |
EditListItems()()()() |