ReportingService2005.SetCacheOptions 方法

Configures a report for caching and provides settings that specify when the cached copy of the report expires.

命名空间:  ReportService2005
程序集:  ReportService2005(在 ReportService2005.dll 中)

语法

声明
Public Sub SetCacheOptions ( _
    Report As String, _
    CacheReport As Boolean, _
    Item As ExpirationDefinition _
)
用法
Dim instance As ReportingService2005 
Dim Report As String 
Dim CacheReport As Boolean 
Dim Item As ExpirationDefinition

instance.SetCacheOptions(Report, CacheReport, _
    Item)
public void SetCacheOptions(
    string Report,
    bool CacheReport,
    ExpirationDefinition Item
)
public:
void SetCacheOptions(
    String^ Report, 
    bool CacheReport, 
    ExpirationDefinition^ Item
)
member SetCacheOptions : 
        Report:string * 
        CacheReport:bool * 
        Item:ExpirationDefinition -> unit
public function SetCacheOptions(
    Report : String, 
    CacheReport : boolean, 
    Item : ExpirationDefinition
)

参数

  • Report
    类型:System.String
    The full path name of the report.
  • CacheReport
    类型:System.Boolean
    A Boolean value that indicates whether a copy of the executed report is placed in cache. The default value is false.

注释

The table below shows header and permissions information on this operation.

SOAP Headers

(In) BatchHeaderValue

(Out) ServerInfoHeaderValue

Required Permissions

UpdatePolicy

If CacheReport is set to false, set the value for Item to nullnull 引用(在 Visual Basic 中为 Nothing) (Nothing in Visual Basic); an error occurs. If CacheReport is set to true, you must provide a value for Item; otherwise, it results in an error.

The SetCacheOptions method can be called only when the execution option for the report is set to Live. For more information about setting execution options programmatically, see SetExecutionOptions.

请参阅

参考

ReportingService2005 类

ReportService2005 命名空间