ReportingService2010.SetCacheOptions メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
アイテムをキャッシュ用に構成し、キャッシュ内のアイテムの有効期限を示す設定を提供します。 このメソッドは、アイテムの種類 Report および Dataset に適用されます。
public:
void SetCacheOptions(System::String ^ ItemPath, bool CacheItem, ReportService2010::ExpirationDefinition ^ Item);
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetCacheOptions", 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 void SetCacheOptions(string ItemPath, bool CacheItem, ReportService2010.ExpirationDefinition Item);
[<System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/SetCacheOptions", 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.SetCacheOptions : string * bool * ReportService2010.ExpirationDefinition -> unit
Public Sub SetCacheOptions (ItemPath As String, CacheItem As Boolean, Item As ExpirationDefinition)
パラメーター
- ItemPath
- String
ファイル名と拡張子 (SharePoint モードの場合) を含む、アイテムの完全修飾 URL です。
- CacheItem
- Boolean
実行されたアイテムのコピーをキャッシュに格納するかどうかを示す Boolean 値です。 既定値は false です。
- Item
- ExpirationDefinition
キャッシュ内のアイテムのスケジュールまたは有効期限を表す ExpirationDefinition オブジェクトです。
- 属性
注釈
次の表に、この操作に関連するヘッダーおよび権限の情報を示します。
| SOAP ヘッダーの使用方法 | (In) TrustedUserHeaderValue (Out) ServerInfoHeaderValue |
| ネイティブ モードで必要なアクセス許可 | UpdatePolicy |
| SharePoint モードで必要なアクセス許可 | <xref:Microsoft.SharePoint.SPBasePermissions.EditListItems> |
CacheItem に false を指定した場合、Item の値に null (Visual Basic では Nothing) を指定する必要があります。そうしない場合、エラーが発生します。
CacheItem に true を指定した場合、Item に値を指定する必要があります。値を指定しないとエラーが発生します。
このメソッドは、アイテムの実行オプションに Live が設定されている場合にのみ呼び出すことができます。 実行オプションをプログラムで設定する方法の詳細については、「SetExecutionOptions」を参照してください。