GetCacheOptions 方法

Returns the cache configuration for a report and the settings that describe when the cached copy of the report expires.

命名空间:  ReportService2005
程序集:  ReportService2005(在 ReportService2005.dll 中)

语法

声明
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/GetCacheOptions", RequestNamespace := "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",  _
    ResponseNamespace := "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices",  _
    Use := SoapBindingUse.Literal, ParameterStyle := SoapParameterStyle.Wrapped)> _
<SoapHeaderAttribute("ServerInfoHeaderValue", Direction := SoapHeaderDirection.Out)> _
Public Function GetCacheOptions ( _
    Report As String, _
    <OutAttribute> ByRef Item As ExpirationDefinition _
) As Boolean
用法
Dim instance As ReportingService2005
Dim Report As String
Dim Item As ExpirationDefinition
Dim returnValue As Boolean

returnValue = instance.GetCacheOptions(Report, _
    Item)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/GetCacheOptions", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", 
    ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
public bool GetCacheOptions(
    string Report,
    out ExpirationDefinition Item
)
[SoapDocumentMethodAttribute(L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/GetCacheOptions", RequestNamespace = L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", 
    ResponseNamespace = L"https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", 
    Use = SoapBindingUse::Literal, ParameterStyle = SoapParameterStyle::Wrapped)]
[SoapHeaderAttribute(L"ServerInfoHeaderValue", Direction = SoapHeaderDirection::Out)]
public:
bool GetCacheOptions(
    String^ Report, 
    [OutAttribute] ExpirationDefinition^% Item
)
[<SoapDocumentMethodAttribute("https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices/GetCacheOptions", RequestNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", 
    ResponseNamespace = "https://schemas.microsoft.com/sqlserver/2005/06/30/reporting/reportingservices", 
    Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)>]
[<SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)>]
member GetCacheOptions : 
        Report:string * 
        Item:ExpirationDefinition byref -> bool 
public function GetCacheOptions(
    Report : String, 
    Item : ExpirationDefinition
) : boolean

参数

返回值

类型:System. . :: . .Boolean
A value of true if a copy of an executed report is placed in cache; otherwise, a value of false. The default value is false.

注释

Use the return value of this method to evaluate whether the report is set to be cached. If the value is false, the method returns a null Nothing nullptr unit null 引用(在 Visual Basic 中为 Nothing) (or Nothing in Visual Basic) for Item.

Use GetCacheOptions only if the execution option is configured to run on demand. For more information about the cache settings of a report, see Reporting Services 中的报表缓存功能. For information about programmatically setting the caching options of a report, see SetCacheOptions method.