Metoda ReportingService2010.CreateItemHistorySnapshot
Generuje migawka historia elementu element określonego katalogu.Niniejsza metoda stosowana do raport element typu.
Przestrzeń nazw: ReportService2010
Zestaw: ReportService2010 (w ReportService2010.dll)
Składnia
'Deklaracja
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
<SoapHeaderAttribute("TrustedUserHeaderValue")> _
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/CreateItemHistorySnapshot", 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)> _
Public Function CreateItemHistorySnapshot ( _
ItemPath As String, _
<OutAttribute> ByRef Warnings As Warning() _
) As String
'Użycie
Dim instance As ReportingService2010
Dim ItemPath As String
Dim Warnings As Warning()
Dim returnValue As String
returnValue = instance.CreateItemHistorySnapshot(ItemPath, _
Warnings)
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
[SoapHeaderAttribute("TrustedUserHeaderValue")]
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/CreateItemHistorySnapshot", 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)]
public string CreateItemHistorySnapshot(
string ItemPath,
out Warning[] Warnings
)
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
[SoapHeaderAttribute(L"TrustedUserHeaderValue")]
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/CreateItemHistorySnapshot", 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)]
public:
String^ CreateItemHistorySnapshot(
String^ ItemPath,
[OutAttribute] array<Warning^>^% Warnings
)
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
[<SoapHeaderAttribute("TrustedUserHeaderValue")>]
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/CreateItemHistorySnapshot", 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)>]
member CreateItemHistorySnapshot :
ItemPath:string *
Warnings:Warning[] byref -> string
public function CreateItemHistorySnapshot(
ItemPath : String,
Warnings : Warning[]
) : String
Parametry
- ItemPath
Typ: System.String
W pełni kwalifikowana URL element, łącznie z nazwą pliku i w trybie SharePoint rozszerzenia.
- Warnings
Typ: array<ReportService2010.Warning[]%
[Brak] Tablica Warning obiektów, które wyświetla ostrzeżenia, które wystąpiły podczas przetwarzania raportu.
Wartość zwracana
Typ: System.String
A ciąg reprezentująca data i czas pieczęć migawka.Ciąg ten jest używany jako identyfikator unikatowy dla migawka historycznych.
Uwagi
W poniższej tabela przedstawiono informacje nagłówka i uprawnienia na tej operacji.
Użycie nagłówek protokołu SOAP |
(Ruch wychodzący)ServerInfoHeaderValue |
Tryb macierzysty wymagane uprawnienia |
CreateSnapshot ORAZ Execute |
Tryb programu SharePoint wymagane uprawnienia |
EditListItems() ORAZ ViewListItems() |
Element historia migawka został wygenerowany pomyślnie, musi być włączone dla elementu catelog.Aby włączyć element historia dla pozycji wykazu, użyj SetItemHistoryOptions metoda.
Jeśli element element raportu zawiera podraportów, zestawy wyników kwerend z podraportami są zachowywane w element migawka historia.Raport parametrów przekazywanych do raportu w czas raportu jest wykonywane również są zachowywane.
Migawki są tworzone przez tę metoda z domyślnych parametrów.
Długość ItemPath parametr nie może przekraczać 260 znaków; w przeciwnym razie SOAP jest wyjątek z kodem błędu rsItemLengthExceeded.
ItemPath Parametr nie może być null lub puste lub zawierać następujących znaków zarezerwowanych: : ? ; @ & = + $ , \ * > < | . ".Ukośnik (/) można używać do oddzielania elementów pełną nazwę ścieżka folderu, ale nie można go użyć na końcu nazwy folderu.