ReportingService2006.SetCacheOptions 메서드

Configures a report to be cached and provides settings that specify when the cached copy of the report expires.

네임스페이스:  ReportService2006
어셈블리:  ReportService2006(ReportService2006.dll)

구문

‘선언
Public Sub SetCacheOptions ( _
    Report As String, _
    CacheReport As Boolean, _
    Item As ExpirationDefinition _
)
‘사용 방법
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
)

매개 변수

  • Report
    유형: System.String
    The fully qualified URL of the report including the file name and .rdl file name extension.
  • CacheReport
    유형: System.Boolean
    A Boolean value that indicates whether a copy of the executed report is put in cache. The default value is false.

주의

The table below shows header and permissions information on this operation.

SOAP Headers

(In) TrustedUserHeaderValue

(Out) ServerInfoHeaderValue

Required Permissions

EditListItems

If CacheReport is set to false, you must set the value for Item to nullnull 참조(Visual Basic에서는 Nothing) (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.

참고 항목

참조

ReportingService2006 클래스

ReportService2006 네임스페이스