ReportingService2005.SetCacheOptions Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Configures a report for caching and provides settings that specify when the cached copy of the report expires.
public:
void SetCacheOptions(System::String ^ Report, bool CacheReport, ReportService2005::ExpirationDefinition ^ Item);
public void SetCacheOptions (string Report, bool CacheReport, ReportService2005.ExpirationDefinition Item);
member this.SetCacheOptions : string * bool * ReportService2005.ExpirationDefinition -> unit
Public Sub SetCacheOptions (Report As String, CacheReport As Boolean, Item As ExpirationDefinition)
Parameters
- Report
- String
The full path name of the report.
- CacheReport
- Boolean
A Boolean
value that indicates whether a copy of the executed report is placed in cache. The default value is false
.
- Item
- ExpirationDefinition
An ExpirationDefinition object representing either a schedule or an expiration time for the report in cache.
Remarks
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 null
(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.