Metodo ReportingService2006.SetCacheOptions
Configures a report to be cached and provides settings that specify when the cached copy of the report expires.
Spazio dei nomi ReportService2006
Assembly: ReportService2006 (in ReportService2006.dll)
Sintassi
'Dichiarazione
Public Sub SetCacheOptions ( _
Report As String, _
CacheReport As Boolean, _
Item As ExpirationDefinition _
)
'Utilizzo
Dim instance As ReportingService2006
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
)
Parametri
- Report
Tipo: System.String
The fully qualified URL of the report including the file name and .rdl file name extension.
- CacheReport
Tipo: System.Boolean
A Boolean value that indicates whether a copy of the executed report is put in cache. The default value is false.
- Item
Tipo: ReportService2006.ExpirationDefinition
An ExpirationDefinition object that represents either a schedule or an expiration time for the report in cache.
Osservazioni
The table below shows header and permissions information on this operation.
SOAP Headers |
(Out) ServerInfoHeaderValue |
Required Permissions |
If CacheReport is set to false, you must set the value for Item to nullriferimento Null (Nothing in Visual Basic). (Nothing in Visual Basic); otherwise, an error occurs. If CacheReport is set to true, you must provide a value for Item; otherwise, a error occurs.
The SetCacheOptions method can be called only when the execution option for the report is set to Live. For more information about how to set execution options programmatically, see SetExecutionOptions.