Langage

ReportingService2010.GetCacheOptions(String, ExpirationDefinition) Méthode

Définition

Restitue la configuration du cache d’un élément ainsi que les paramètres qui décrivent l’expiration de la copie mise en cache de l’élément. Cette méthode s’applique aux types d’objets Report et Dataset .

public:
 bool GetCacheOptions(System::String ^ ItemPath, [Runtime::InteropServices::Out] ReportService2010::ExpirationDefinition ^ % Item);
[System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetCacheOptions", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal)]
[System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)]
[System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")]
public bool GetCacheOptions(string ItemPath, out ReportService2010.ExpirationDefinition Item);
[<System.Web.Services.Protocols.SoapDocumentMethod("http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetCacheOptions", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, RequestNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", ResponseNamespace="http://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", Use=System.Web.Services.Description.SoapBindingUse.Literal)>]
[<System.Web.Services.Protocols.SoapHeader("ServerInfoHeaderValue", Direction=System.Web.Services.Protocols.SoapHeaderDirection.Out)>]
[<System.Web.Services.Protocols.SoapHeader("TrustedUserHeaderValue")>]
member this.GetCacheOptions : string * ExpirationDefinition -> bool
Public Function GetCacheOptions (ItemPath As String, ByRef Item As ExpirationDefinition) As Boolean

Paramètres

ItemPath
String

L’URL entièrement qualifiée de l’élément incluant le nom du fichier et, en mode SharePoint, l’extension.

Item
ExpirationDefinition

[dehors] Un ExpirationDefinition objet qui définit soit le temps, en minutes, soit le planning auquel la copie mise en cache expire.

Retours

true si une copie d’un élément exécuté est mise en cache ; sinon, false.

Attributs

Remarques

Le tableau ci-dessous présente les informations sur l’en-tête et les autorisations concernant cette opération.

Utilisation de l’en-tête SOAP (En) TrustedUserHeaderValue

(Dehors) ServerInfoHeaderValue
Mode natif : autorisations requises ReadPolicy
Permissions requises en mode SharePoint <xref:Microsoft.SharePoint.SPBasePermissions.ViewListItems>

Utilisez la valeur de retour de cette méthode pour évaluer si l’élément est configuré pour être mis en cache. Si la valeur est false, la méthode retourne un null (ou Nothing dans Visual Basic) pour Item.

Utilisez cette méthode uniquement si l’option d’exécution est configurée pour fonctionner à la demande. Pour plus d’informations sur les paramètres de cache d’un élément, voir Rapports de mise en cache (SSRS). Pour des informations sur la configuration programmatique des options de mise en cache d’un élément, voir la SetCacheOptions méthode.

S’applique à