Udostępnij za pośrednictwem


Metoda ReportingService2010.SetItemHistoryLimit

Określa liczbę migawek element serwer raportów zachowuje.Niniejsza metoda stosowana do raport element typu.

Przestrzeń nazw:  ReportService2010
Zestaw:  ReportService2010 (w ReportService2010.dll)

Składnia

'Deklaracja
<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 _
)
'Użycie
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
)

Parametry

  • ItemPath
    Typ: System.String
    W pełni kwalifikowana URL element, łącznie z nazwą pliku i w trybie SharePoint rozszerzenia.
  • UseSystem
    Typ: System.Boolean
    A logiczna wyrażenia, gdy zestaw do true, zestaws limit historia elementów do bieżącego limit historia elementów systemu.Wartość false wskazuje, że element limit historia odpowiada wartość podana w HistoryLimit parametru.
  • HistoryLimit
    Typ: System.Int32
    Numer element migawki historia do przechowywania dla towaru.Wartości mają zakres od -1 do 2 147 483 647.Jeśli wartość jest zestaw do –1, są zapisywane wszystkie migawki element.

Uwagi

W poniższej tabela przedstawiono informacje nagłówka i uprawnienia na tej operacji.

Użycie nagłówek protokołu SOAP

(W)TrustedUserHeaderValue

(Ruch wychodzący)ServerInfoHeaderValue

Tryb macierzysty wymagane uprawnienia

UpdatePolicy

Tryb programu SharePoint wymagane uprawnienia

EditListItems()

Ta metoda obsługuje wyłącznie raport element typu.Określenie URL dowolny element innych niż raportu powoduje metoda w celu wygenerowania wyjątku z ciąg wyjątku "Niewłaściwy typ elementu".

Jeśli UseSystem parametr jest zestaw do true, ignoruje serwer raportów HistoryLimit parametru.

Ostrzeżenie

Jeśli wartość HistoryLimit zostanie zmieniona, może być usunięty element migawki historia.