Chart.SaveToCache Method
Saves a chart in the system cache.
Namespace: System.Web.Helpers
Assembly: System.Web.Helpers (in System.Web.Helpers.dll)
Syntax
'Declaration
Public Function SaveToCache ( _
key As String, _
minutesToCache As Integer, _
slidingExpiration As Boolean _
) As String
'Usage
Dim instance As Chart
Dim key As String
Dim minutesToCache As Integer
Dim slidingExpiration As Boolean
Dim returnValue As String
returnValue = instance.SaveToCache(key, _
minutesToCache, slidingExpiration)
public string SaveToCache(
string key,
int minutesToCache,
bool slidingExpiration
)
public:
String^ SaveToCache(
String^ key,
int minutesToCache,
bool slidingExpiration
)
member SaveToCache :
key:string *
minutesToCache:int *
slidingExpiration:bool -> string
public function SaveToCache(
key : String,
minutesToCache : int,
slidingExpiration : boolean
) : String
Parameters
- key
Type: System.String
The ID of the chart in the cache.
- minutesToCache
Type: System.Int32
The number of minutes to keep the chart image in the cache. The default is 20.
- slidingExpiration
Type: System.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.
Return Value
Type: System.String
The ID of the cache item that contains the chart.