ReportingService2010.SetItemHistoryLimit(String, Boolean, Int32) Méthode

Définition

Spécifie le nombre d'instantanés d'un élément conservés par le serveur de rapports. Cette méthode s'applique au type d'élément de Report.

public:
 void SetItemHistoryLimit(System::String ^ ItemPath, bool UseSystem, int HistoryLimit);
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetItemHistoryLimit", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
[System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")]
[System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
public void SetItemHistoryLimit (string ItemPath, bool UseSystem, int HistoryLimit);
[<System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetItemHistoryLimit", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal)>]
[<System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")>]
[<System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)>]
member this.SetItemHistoryLimit : string * bool * int -> unit
Public Sub SetItemHistoryLimit (ItemPath As String, UseSystem As Boolean, HistoryLimit As Integer)

Paramètres

ItemPath
String

URL complète de l'élément, y compris le nom du fichier et, en mode SharePoint, l'extension.

UseSystem
Boolean

Expression Boolean qui, lorsqu'elle a la valeur true, définit la limite d'historique de l'élément comme étant égale à la limite système d'historique d'élément actuelle. La valeur de indique que la limite d’historique false des éléments correspond à la valeur fournie dans le HistoryLimit paramètre.

HistoryLimit
Int32

Nombre d'instantanés d'historique d'élément à stocker pour l'élément. Les valeurs sont comprises entre -1 et 2,147,483,647. Si la valeur est –1, tous les instantanés d'élément sont enregistrés.

Attributs

Remarques

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

Utilisation de l’en-tête SOAP (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
Autorisations requises en mode natif UpdatePolicy
Mode SharePoint Autorisations requises <xref:Microsoft.SharePoint.SPBasePermissions.EditListItems>

Cette méthode prend uniquement en charge le type d’élément Report . Si vous spécifiez l’URL d’un élément autre qu’un rapport, la méthode lève une exception avec la chaîne d’exception « Type d’élément incorrect ».

Si le UseSystem paramètre est défini sur true, le serveur de rapports ignore le HistoryLimit paramètre.

Notes

Si la valeur de est modifiée, les instantanés de HistoryLimit l’historique des éléments peuvent être supprimés.

S’applique à