Méthode ReportingService2010.GetCacheOptions
Returns the cache configuration for an item and the settings that describe when the cached copy of the item expires. This method applies to the Report and Dataset item types.
Espace de noms : ReportService2010
Assembly : ReportService2010 (en ReportService2010.dll)
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)] [SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetCacheOptions", RequestNamespace = "http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace = "http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)] [SoapHeaderAttribute("TrustedUserHeaderValue")] public bool GetCacheOptions( string ItemPath, out ExpirationDefinition Item )
Paramètres
- ItemPath
- Type : System.String
The fully qualified URL of the item including the file name and, in SharePoint mode, the extension.
- Item
- Type : ReportService2010.ExpirationDefinition%
[out] An ExpirationDefinition object that defines either the time, in minutes, or the schedule upon which the cached copy expires.
Valeur de retour
Type : System.Booleantrue if a copy of an executed item is put in cache; otherwise, false.
The table below shows header and permissions information on this operation.
SOAP Header Usage | (Out) ServerInfoHeaderValue |
Native Mode Required Permissions | |
SharePoint Mode Required Permissions |
Use the return value of this method to evaluate whether the item is set to be cached. If the value is false, the method returns a null (or Nothing in Visual Basic) for Item.
Use this method only if the execution option is configured to run on demand. For more information about the cache settings of an item, see Mise en cache de rapports (SSRS). For information about programmatically setting the caching options of an item, see the SetCacheOptions method.
