ReportingService2010.GetCacheOptions(String, ExpirationDefinition) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
アイテムのキャッシュ設定と、キャッシュされたアイテムのコピーが期限切れになる設定を返します。 この方法は Report および Dataset アイテムタイプに適用されます。
public:
bool GetCacheOptions(System::String ^ ItemPath, [Runtime::InteropServices::Out] ReportService2010::ExpirationDefinition ^ % Item);
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetCacheOptions", 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 bool GetCacheOptions(string ItemPath, out ReportService2010.ExpirationDefinition Item);
[<System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetCacheOptions", 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.GetCacheOptions : string * ExpirationDefinition -> bool
Public Function GetCacheOptions (ItemPath As String, ByRef Item As ExpirationDefinition) As Boolean
パラメーター
- ItemPath
- String
項目の完全限定URLと、ファイル名、SharePointモードでは拡張子を含みます。
- Item
- ExpirationDefinition
[アウト]キャッシュされたコピーが失効する時間(分単位)またはスケジュールのいずれかを定義する ExpirationDefinition オブジェクトです。
返品
true 実行されたアイテムのコピーがキャッシュに入った場合、それ以外は false。
- 属性
注釈
以下の表は、この操作のヘッダーおよび権限情報を示しています。
| SOAPヘッダーの使用 | (イン) TrustedUserHeaderValue (アウト) ServerInfoHeaderValue |
| ネイティブモードの必要権限 | ReadPolicy |
| SharePointモードの必要権限 | <xref:Microsoft.SharePoint.SPBasePermissions.ViewListItems> |
このメソッドの返り値を使って、アイテムがキャッシュされるかどうかを評価します。 値がfalseの場合、メソッドは 1 null に対してNothing(またはVisual Basic Item)を返します。
この方法は、実行オプションがオンデマンドで実行されるように設定されている場合のみ使用してください。 アイテムのキャッシュ設定の詳細については、 キャッシュレポート(SSRS)を参照してください。 項目のキャッシュオプションをプログラム的に設定する方法については、 SetCacheOptions メソッドを参照してください。