Share via


ReportingService2010.CreateItemHistorySnapshot(String, Warning[]) メソッド

定義

指定したカタログ アイテムのアイテム履歴スナップショットを生成します。 このメソッドは、アイテムの種類 Report に適用されます。

public:
 System::String ^ CreateItemHistorySnapshot(System::String ^ ItemPath, [Runtime::InteropServices::Out] cli::array <ReportService2010::Warning ^> ^ % Warnings);
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/CreateItemHistorySnapshot", 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("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")]
public string CreateItemHistorySnapshot (string ItemPath, out ReportService2010.Warning[] Warnings);
[<System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/CreateItemHistorySnapshot", 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("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)>]
[<System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")>]
member this.CreateItemHistorySnapshot : string * Warning[] -> string
Public Function CreateItemHistorySnapshot (ItemPath As String, ByRef Warnings As Warning()) As String

パラメーター

ItemPath
String

ファイル名と拡張子 (SharePoint モードの場合) を含む、アイテムの完全修飾 URL です。

Warnings
Warning[]

[out] レポート処理中に発生した警告の一覧が格納される Warning オブジェクトの配列です。

戻り値

スナップショットの日付とタイム スタンプを表す String です。 この文字列は、履歴スナップショットの一意の識別子として使用されます。

属性

注釈

次の表に、この操作に関連するヘッダーおよび権限の情報を示します。

SOAP ヘッダーの使用方法 (In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue
ネイティブ モードで必要なアクセス許可 CreateSnapshot および Execute
SharePoint モードで必要なアクセス許可 <xref:Microsoft.SharePoint.SPBasePermissions.EditListItems> および <xref:Microsoft.SharePoint.SPBasePermissions.ViewListItems>

スナップショットを正常に生成するためには、そのカタログ アイテムのアイテム履歴を有効にする必要があります。 カタログ アイテムのアイテム履歴を有効にするには、SetItemHistoryOptions メソッドを使用します。

レポート アイテムにサブレポートが含まれている場合は、サブレポートからのクエリ結果セットがアイテム履歴スナップショットに保存されます。 レポートの実行時にレポートに渡されたレポート パラメーターも保存されます。

このメソッドで作成したスナップショットは、必ず既定のパラメーターを使用したものになります。

パラメーターの ItemPath 長さは 260 文字を超えることはできません。それ以外の場合は、エラー コード rsItemLengthExceeded で SOAP 例外がスローされます。

ItemPath パラメーターを NULL または空の文字列にすることはできません。また、予約文字 : ? ; @ & = + $ , \ * > < | . " を含めることもできません。 スラッシュ文字 (/) を使用して、フォルダーの完全なパス名内の項目を区切ることができますが、フォルダー名の末尾で使用することはできません。

適用対象