ReportingService2010.SetItemHistoryLimit(String, Boolean, Int32) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
レポート サーバーが保持するアイテムのスナップショット数を指定します。 このメソッドは、アイテムの種類 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)
パラメーター
- ItemPath
- String
ファイル名と拡張子 (SharePoint モードの場合) を含む、アイテムの完全修飾 URL です。
- UseSystem
- Boolean
Boolean
に設定した場合に、アイテム履歴制限に現在のシステム アイテム履歴制限の値が設定される true
式です。 の値 false
は、項目履歴の制限が パラメーターで指定された値に HistoryLimit
対応していることを示します。
- HistoryLimit
- Int32
アイテムに対して格納されるアイテム履歴スナップショットの数です。 値の範囲は、-1
~ 2,147,483,647
です。 値が –1
の場合、すべてのアイテム スナップショットが保存されます。
- 属性
注釈
次の表に、この操作に関連するヘッダーおよび権限の情報を示します。
SOAP ヘッダーの使用方法 | (In) TrustedUserHeaderValue (Out) ServerInfoHeaderValue |
ネイティブ モードで必要なアクセス許可 | UpdatePolicy |
SharePoint モードに必要なアクセス許可 | <xref:Microsoft.SharePoint.SPBasePermissions.EditListItems> |
このメソッドは、アイテムの種類 Report
のみをサポートします。 レポート以外のアイテムの URL を指定すると、このメソッドは例外文字列 "Wrong Item Type" が含まれる例外をスローします。
UseSystem
パラメーターに true
を設定した場合、レポート サーバーは HistoryLimit
パラメーターを無視します。
注意
HistoryLimit
の値を変更すると、アイテム履歴スナップショットが削除される可能性があります。