Поделиться через


Метод GetReportHistoryLimit

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

Пространство имен:  ReportService2006
Сборка:  ReportService2006 (в ReportService2006.dll)

Синтаксис

'Декларация
<SoapHeaderAttribute("TrustedUserHeaderValue")> _
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/GetReportHistoryLimit", RequestNamespace := "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices",  _
    ResponseNamespace := "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
Public Function GetReportHistoryLimit ( _
    Report As String, _
    <OutAttribute> ByRef IsSystem As Boolean, _
    <OutAttribute> ByRef SystemLimit As Integer _
) As Integer
'Применение
Dim instance As ReportingService2006
Dim Report As String
Dim IsSystem As Boolean
Dim SystemLimit As Integer
Dim returnValue As Integer

returnValue = instance.GetReportHistoryLimit(Report, _
    IsSystem, SystemLimit)
[SoapHeaderAttribute("TrustedUserHeaderValue")]
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/GetReportHistoryLimit", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", 
    ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
public int GetReportHistoryLimit(
    string Report,
    out bool IsSystem,
    out int SystemLimit
)
[SoapHeaderAttribute(L"TrustedUserHeaderValue")]
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/GetReportHistoryLimit", RequestNamespace = L"https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", 
    ResponseNamespace = L"https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", 
    Use = SoapBindingUse::Literal, ParameterStyle = SoapParameterStyle::Wrapped)]
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
public:
int GetReportHistoryLimit(
    String^ Report, 
    [OutAttribute] bool% IsSystem, 
    [OutAttribute] int% SystemLimit
)
[<SoapHeaderAttribute("TrustedUserHeaderValue")>]
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/GetReportHistoryLimit", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", 
    ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)>]
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
member GetReportHistoryLimit : 
        Report:string * 
        IsSystem:bool byref * 
        SystemLimit:int byref -> int 
public function GetReportHistoryLimit(
    Report : String, 
    IsSystem : boolean, 
    SystemLimit : int
) : int

Параметры

  • Report
    Тип: System. . :: . .String
    Полный URL-адрес отчета, включая имя файла и расширение RDL.
  • IsSystem
    Тип: System. . :: . .Boolean%
    Выражение типа Boolean, которое возвращает значение true, если политика моментальных снимков отчета задана равной системному ограничению. Параметр возвращает значение false, если для отчета задано собственное ограничение на журнал отчета.
  • SystemLimit
    Тип: System. . :: . .Int32%
    Системное ограничение для журнала отчета.

Возвращаемое значение

Тип: System. . :: . .Int32
В следующей таблице показаны сведения о заголовках и разрешениях для этой операции.

Заголовки SOAP

(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue

Необходимые разрешения

ViewListItems()()()()

Значение типа integer, представляющее ограничение для данного журнала отчета. Возможны значения от -1 до 2 147 483 647. Если задано значение -1, то сохраняются все моментальные снимки журнала отчета.