言語

ReportingService2010.SetCacheOptions メソッド

定義

アイテムをキャッシュ設定し、キャッシュされたアイテムのコピーがいつ期限切れかを指定する設定を提供します。 この方法は 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

項目の完全限定URLと、ファイル名、SharePointモードでは拡張子を含みます。

CacheItem
Boolean

実行されたアイテムのコピーがキャッシュに入っているかどうかを示す Boolean 値です。 既定値は false です。

Item
ExpirationDefinition

キャッシュ内のアイテムのスケジュールまたは有効期限を表す ExpirationDefinition オブジェクトです。

属性

注釈

以下の表は、この操作のヘッダーおよび権限情報を示しています。

SOAPヘッダーの使用 (イン) TrustedUserHeaderValue

(アウト) ServerInfoHeaderValue
ネイティブモードの必要権限 UpdatePolicy
SharePointモードの必要権限 <xref:Microsoft.SharePoint.SPBasePermissions.EditListItems>

CacheItemfalseに設定されている場合、Itemの値をnull(Visual BasicのNothing)に設定しなければなりません。そうでなければエラーが発生します。 CacheItemtrueに設定されている場合、Itemの値を指定しなければなりません。そうでなければエラーが発生します。

このメソッドは、アイテムの実行オプションが Liveに設定されている場合にのみ呼び出せます。 実行オプションの設定方法については、 SetExecutionOptionsを参照してください。

適用対象