Configures an item to be cached and provides settings that specify when the cached copy of the item expires. This method applies to the Report and Dataset item types.
Assembly: ReportService2010 (in ReportService2010.dll)
public function SetCacheOptions( ItemPath : String, CacheItem : boolean, Item : ExpirationDefinition )
- Type: System.String
The fully qualified URL of the item including the file name and, in SharePoint mode, the extension.
- Type: System.Boolean
A Boolean value that indicates whether a copy of the executed item is put in cache. The default value is false.
The table below shows header and permissions information on this operation.
SOAP Header Usage
Native Mode Required Permissions
SharePoint Mode Required Permissions
If CacheItem is set to false, you must set the value for Item to a null reference (Nothing in Visual Basic) (Nothing in Visual Basic); otherwise, an error occurs. If CacheItem is set to true, you must provide a value for Item; otherwise, a error occurs.
This method can be called only when the execution option for the item is set to Live. For more information about how to set execution options programmatically, see SetExecutionOptions.