SetItemHistoryLimit-Methode
Gibt die Anzahl der Momentaufnahmen eines Elements an, die der Berichtsserver beibehält. Diese Methode gilt für den Report-Elementtyp.
Namespace: ReportService2010
Assembly: ReportService2010 (in ReportService2010.dll)
Syntax
'Declaration
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetItemHistoryLimit", RequestNamespace := "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", _
ResponseNamespace := "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
<SoapHeaderAttribute("TrustedUserHeaderValue")> _
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
Public Sub SetItemHistoryLimit ( _
ItemPath As String, _
UseSystem As Boolean, _
HistoryLimit As Integer _
)
'Usage
Dim instance As ReportingService2010
Dim ItemPath As String
Dim UseSystem As Boolean
Dim HistoryLimit As Integer
instance.SetItemHistoryLimit(ItemPath, _
UseSystem, HistoryLimit)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetItemHistoryLimit", RequestNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
ResponseNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
[SoapHeaderAttribute("TrustedUserHeaderValue")]
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
public void SetItemHistoryLimit(
string ItemPath,
bool UseSystem,
int HistoryLimit
)
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetItemHistoryLimit", RequestNamespace = L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
ResponseNamespace = L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
Use = SoapBindingUse::Literal, ParameterStyle = SoapParameterStyle::Wrapped)]
[SoapHeaderAttribute(L"TrustedUserHeaderValue")]
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
public:
void SetItemHistoryLimit(
String^ ItemPath,
bool UseSystem,
int HistoryLimit
)
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetItemHistoryLimit", RequestNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
ResponseNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)>]
[<SoapHeaderAttribute("TrustedUserHeaderValue")>]
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
member SetItemHistoryLimit :
ItemPath:string *
UseSystem:bool *
HistoryLimit:int -> unit
public function SetItemHistoryLimit(
ItemPath : String,
UseSystem : boolean,
HistoryLimit : int
)
Parameter
- ItemPath
Typ: System. . :: . .String
Die vollqualifizierte URL des Elements einschließlich des Dateinamens und (im SharePoint-Modus) der Erweiterung.
- UseSystem
Typ: System. . :: . .Boolean
Ein Boolean-Ausdruck, mit dem der Grenzwert für den Elementverlauf auf den aktuellen Systemgrenzwert für den Elementverlauf festgelegt wird, wenn true angegeben wurde. Der Wert false gibt an, dass der Grenzwert für den Elementverlauf dem im HistoryLimit-Parameter angegebenen Wert entspricht.
- HistoryLimit
Typ: System. . :: . .Int32
Die Anzahl der Elementverlaufs-Momentaufnahmen, die für das Element gespeichert werden sollen. Die gültigen Werte liegen zwischen -1 und 2.147.483.647. Wenn der Wert auf –1 festgelegt wird, werden alle Elementmomentaufnahmen gespeichert.
Hinweise
The table below shows header and permissions information on this operation.
SOAP Header Usage |
(Out) ServerInfoHeaderValue |
Native Mode Required Permissions |
|
SharePoint Mode Required Permissions |
EditListItems()()()() |
This method only supports the Report item type. Specifying the URL of any item other than a report causes the method to throw an exception with the exception string "Wrong Item Type".
If the UseSystem parameter is set to true, the report server ignores the HistoryLimit parameter.
Hinweis |
---|
If the value of HistoryLimit is changed, item history snapshots may be deleted. |