Chart.SaveToCache(String, Int32, Boolean) Chart.SaveToCache(String, Int32, Boolean) Chart.SaveToCache(String, Int32, Boolean) Method

Definition

Saves a chart in the system cache.

public string SaveToCache (string key = null, int minutesToCache = 20, bool slidingExpiration = true);
member this.SaveToCache : string * int * bool -> string
Public Function SaveToCache (Optional key As String = null, Optional minutesToCache As Integer = 20, Optional slidingExpiration As Boolean = true) As String

Parameters

key
String String String

The ID of the chart in the cache.

minutesToCache
Int32 Int32 Int32

The number of minutes to keep the chart image in the cache. The default is 20.

slidingExpiration
Boolean Boolean Boolean

true to indicate that the chart cache item's expiration is reset each time the item is accessed, or false to indicate that the expiration is based on an absolute interval since the time that the item was added to the cache. The default is true.

Returns

The ID of the cache item that contains the chart.

Applies to