Méthode SetReportHistoryLimit
Spécifie le nombre d'instantanés d'un rapport que le serveur de rapports conserve dans la base de données du serveur de rapports.
Espace de noms : ReportService2006
Assembly : ReportService2006 (en ReportService2006.dll)
Syntaxe
'Déclaration
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/SetReportHistoryLimit", 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)> _
<SoapHeaderAttribute("TrustedUserHeaderValue")> _
Public Sub SetReportHistoryLimit ( _
Report As String, _
UseSystem As Boolean, _
HistoryLimit As Integer _
)
'Utilisation
Dim instance As ReportingService2006
Dim Report As String
Dim UseSystem As Boolean
Dim HistoryLimit As Integer
instance.SetReportHistoryLimit(Report, _
UseSystem, HistoryLimit)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/SetReportHistoryLimit", 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)]
[SoapHeaderAttribute("TrustedUserHeaderValue")]
public void SetReportHistoryLimit(
string Report,
bool UseSystem,
int HistoryLimit
)
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/SetReportHistoryLimit", 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)]
[SoapHeaderAttribute(L"TrustedUserHeaderValue")]
public:
void SetReportHistoryLimit(
String^ Report,
bool UseSystem,
int HistoryLimit
)
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/SetReportHistoryLimit", 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)>]
[<SoapHeaderAttribute("TrustedUserHeaderValue")>]
member SetReportHistoryLimit :
Report:string *
UseSystem:bool *
HistoryLimit:int -> unit
public function SetReportHistoryLimit(
Report : String,
UseSystem : boolean,
HistoryLimit : 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.
- UseSystem
Type : System. . :: . .Boolean
Expression booléenne qui, lorsqu'elle a la valeur True, définit la limite d'historique de rapport comme étant égale à la limite système d'historique de rapport actuelle. false indique que la limite d'historique de rapport correspond à la valeur fournie dans le paramètre HistoryLimit.
- HistoryLimit
Type : System. . :: . .Int32
Nombre d'instantanés d'historique de rapport à stocker pour le rapport. Les valeurs sont comprises entre -1 et 2 147 483 647. Si la valeur est –1, tous les instantanés de rapport sont enregistrés.
Notes
The table below shows header and permissions information on this operation.
SOAP Headers |
(Out) ServerInfoHeaderValue |
Required Permissions |
EditListItems()()()() |
If the UseSystem parameter is set to true, the report server ignores the HistoryLimit parameter.
Notes
If the value of HistoryLimit is changed, report history snapshots might be deleted.