SetReportHistoryOptions 方法
Sets report history options that specify when a report history snapshot is created for a specified report.
命名空间: ReportService2005
程序集: ReportService2005(在 ReportService2005.dll 中)
语法
声明
<SoapHeaderAttribute("BatchHeaderValue")> _
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/SetReportHistoryOptions", RequestNamespace := "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", _
ResponseNamespace := "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
Public Sub SetReportHistoryOptions ( _
Report As String, _
EnableManualSnapshotCreation As Boolean, _
KeepExecutionSnapshots As Boolean, _
Item As ScheduleDefinitionOrReference _
)
用法
Dim instance As ReportingService2005
Dim Report As String
Dim EnableManualSnapshotCreation As Boolean
Dim KeepExecutionSnapshots As Boolean
Dim Item As ScheduleDefinitionOrReference
instance.SetReportHistoryOptions(Report, _
EnableManualSnapshotCreation, KeepExecutionSnapshots, _
Item)
[SoapHeaderAttribute("BatchHeaderValue")]
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/SetReportHistoryOptions", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
public void SetReportHistoryOptions(
string Report,
bool EnableManualSnapshotCreation,
bool KeepExecutionSnapshots,
ScheduleDefinitionOrReference Item
)
[SoapHeaderAttribute(L"BatchHeaderValue")]
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/SetReportHistoryOptions", RequestNamespace = L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
ResponseNamespace = L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
Use = SoapBindingUse::Literal, ParameterStyle = SoapParameterStyle::Wrapped)]
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
public:
void SetReportHistoryOptions(
String^ Report,
bool EnableManualSnapshotCreation,
bool KeepExecutionSnapshots,
ScheduleDefinitionOrReference^ Item
)
[<SoapHeaderAttribute("BatchHeaderValue")>]
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/SetReportHistoryOptions", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)>]
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
member SetReportHistoryOptions :
Report:string *
EnableManualSnapshotCreation:bool *
KeepExecutionSnapshots:bool *
Item:ScheduleDefinitionOrReference -> unit
public function SetReportHistoryOptions(
Report : String,
EnableManualSnapshotCreation : boolean,
KeepExecutionSnapshots : boolean,
Item : ScheduleDefinitionOrReference
)
参数
- Report
类型:System. . :: . .String
The full path name of the report.
- EnableManualSnapshotCreation
类型:System. . :: . .Boolean
Indicates whether report history snapshots can be created through the Web service CreateReportHistorySnapshot method. The default value is true.
- KeepExecutionSnapshots
类型:System. . :: . .Boolean
Indicates whether report execution snapshots are collected for report history. The default value is false.
- Item
类型:ReportService2005. . :: . .ScheduleDefinitionOrReference
The ScheduleDefinition object or ScheduleReference object that represents the schedule information for the report history snapshot. If the report history snapshot is not created according to a schedule, pass a NoSchedule object for this parameter.