Metodo GetCacheOptions
Restituisce la configurazione della cache per un elemento e le impostazioni che indicano la scadenza della copia dell'elemento memorizzata nella cache. Questo metodo si applica ai tipi di elemento Report e Dataset.
Spazio dei nomi ReportService2010
Assembly: ReportService2010 (in ReportService2010.dll)
Sintassi
'Dichiarazione
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetCacheOptions", RequestNamespace := "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", _
ResponseNamespace := "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer", _
Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
<SoapHeaderAttribute("TrustedUserHeaderValue")> _
Public Function GetCacheOptions ( _
ItemPath As String, _
<OutAttribute> ByRef Item As ExpirationDefinition _
) As Boolean
'Utilizzo
Dim instance As ReportingService2010
Dim ItemPath As String
Dim Item As ExpirationDefinition
Dim returnValue As Boolean
returnValue = instance.GetCacheOptions(ItemPath, _
Item)
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetCacheOptions", RequestNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
ResponseNamespace = "https://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
)
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetCacheOptions", RequestNamespace = L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
ResponseNamespace = L"https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
Use = SoapBindingUse::Literal, ParameterStyle = SoapParameterStyle::Wrapped)]
[SoapHeaderAttribute(L"TrustedUserHeaderValue")]
public:
bool GetCacheOptions(
String^ ItemPath,
[OutAttribute] ExpirationDefinition^% Item
)
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer/GetCacheOptions", RequestNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
ResponseNamespace = "https://schemas.microsoft.com/sqlserver/reporting/2010/03/01/ReportServer",
Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)>]
[<SoapHeaderAttribute("TrustedUserHeaderValue")>]
member GetCacheOptions :
ItemPath:string *
Item:ExpirationDefinition byref -> bool
public function GetCacheOptions(
ItemPath : String,
Item : ExpirationDefinition
) : boolean
Parametri
- ItemPath
Tipo: System. . :: . .String
URL completo dell'elemento, inclusi il nome file e, in modalità SharePoint, l'estensione.
- Item
Tipo: ReportService2010. . :: . .ExpirationDefinition%
[out] Oggetto ExpirationDefinition che definisce l'ora, in minuti, o la pianificazione che stabilisce la scadenza della copia memorizzata nella cache.
Valore restituito
Tipo: System. . :: . .Boolean
true se una copia di un elemento eseguito viene inserita nella cache; in caso contrario, false.
Osservazioni
The table below shows header and permissions information on this operation.
SOAP Header Usage |
(Out) ServerInfoHeaderValue |
Native Mode Required Permissions |
|
SharePoint Mode Required Permissions |
ViewListItems()()()() |
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 Nothing nullptr unit riferimento Null (Nothing in Visual Basic). (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 memorizzazione nella cache dei report in Reporting Services. For information about programmatically setting the caching options of an item, see the SetCacheOptions method.