SetCacheOptions méthode

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

Espace de noms :  ReportService2006
Assembly :  ReportService2006 (dans ReportService2006.dll)

[SoapDocumentMethodAttribute("http://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices/SetCacheOptions", RequestNamespace = "http://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", 
	ResponseNamespace = "http://schemas.microsoft.com/sqlserver/2006/03/15/reporting/reportingservices", 
	Use = SoapBindingUse.Literal, ParameterStyle = SoapParameterStyle.Wrapped)]
[SoapHeaderAttribute("TrustedUserHeaderValue")]
[SoapHeaderAttribute("ServerInfoHeaderValue", Direction = SoapHeaderDirection.Out)]
public void SetCacheOptions(
	string Report,
	bool CacheReport,
	ExpirationDefinition Item
)

Paramètres

Report
Type : System..::..String
The fully qualified URL of the report including the file name and .rdl file name extension.
CacheReport
Type : System..::..Boolean
A Boolean value that indicates whether a copy of the executed report is put in cache. The default value is false.
Item
Type : ReportService2006..::..ExpirationDefinition
An ExpirationDefinition object that represents either a schedule or an expiration time for the report in cache.

If CacheReport is set to false, you must set the value for Item to nullNothingnullptrunitune référence Null (Nothing dans Visual Basic) (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.

Ajouts de la communauté

AJOUTER
Afficher: