Partager via


Méthode GetReportHistoryLimit

Retourne la limite des instantanés d'historique de rapport pour un rapport spécifié.

Espace de noms :  ReportService2006
Assembly :  ReportService2006 (en ReportService2006.dll)

Syntaxe

'Déclaration
<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
'Utilisation
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

Paramètres

  • Report
    Type : System. . :: . .String
    URL complète du rapport, y compris le nom de fichier et l'extension de nom de fichier .rdl.
  • IsSystem
    Type : System. . :: . .Boolean%
    Expression booléenne qui retourne True si la stratégie d'instantané de rapport est définie comme étant égale à la limite du système. Le paramètre retourne False si le rapport possède sa propre limite d'historique de rapport.

Valeur de retour

Type : System. . :: . .Int32
Le tableau suivant présente les informations relatives aux en-têtes et aux autorisations sur cette opération.

En-têtes SOAP

(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue

Autorisations requises

ViewListItems()()()()

Valeur de type integer qui représente la limite d'historique pour un rapport donné. Les valeurs sont comprises entre -1 et 2 147 483 647. Si la valeur est -1, tous les instantanés d'historique de rapport sont enregistrés.