ReportingService2005.SetCacheOptions 메서드

Configures a report for caching and provides settings that specify when the cached copy of the report expires.

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

public void SetCacheOptions(
	string Report,
	bool CacheReport,
	ExpirationDefinition Item

매개 변수

유형: System.String
The full path name of the report.
유형: System.Boolean
A Boolean value that indicates whether a copy of the executed report is placed in cache. The default value is false.
유형: ReportService2005.ExpirationDefinition
An ExpirationDefinition object representing either a schedule or an expiration time for the report in cache.

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

SOAP Headers

(In) BatchHeaderValue

(Out) ServerInfoHeaderValue

Required Permissions


If CacheReport is set to false, set the value for Item to null (Nothing in Visual Basic); an error occurs. If CacheReport is set to true, you must provide a value for Item; otherwise, it results in an error.

The SetCacheOptions method can be called only when the execution option for the report is set to Live. For more information about setting execution options programmatically, see SetExecutionOptions.

커뮤니티 추가 항목