Метод SetReportHistoryOptions

Задает параметры журнала отчетов, указанные при создании моментального снимка журнала отчета для указанного отчета.

Пространство имен:  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
)

Параметры

  • EnableManualSnapshotCreation
    Тип: System. . :: . .Boolean
    Показывает, можно ли создавать моментальные снимки журнала отчета с помощью метода CreateReportHistorySnapshot веб-службы. Значение по умолчанию — true.
  • KeepExecutionSnapshots
    Тип: System. . :: . .Boolean
    Показывает, собираются ли снимки состояния выполнения отчета для журнала отчета. Значение по умолчанию — false.
  • Item
    Тип: ReportService2005. . :: . .ScheduleDefinitionOrReference
    Объект ScheduleDefinition или объект ScheduleReference, представляющий сведения о расписании для моментального снимка журнала отчета. Если моментальный снимок журнала отчета не создается по расписанию, передайте в качестве этого параметра объект NoSchedule.

Замечания

The table below shows header and permissions information on this operation.

SOAP Headers

(In) BatchHeaderValue

(Out) ServerInfoHeaderValue

Required Permissions

UpdatePolicy AND CreateSnapshot