.netCHARTING v10.3 Documentation
Example 


dotnetCHARTING Namespace > Chart Class : CacheDuration Property
CacheDuration Property
Gets or sets the number of minutes an image is cached and displayed on a page before a new one is generated.
Syntax
'Declaration
 
Public Property CacheDuration As Integer
'Usage
 
Dim instance As Chart
Dim value As Integer
 
instance.CacheDuration = value
 
value = instance.CacheDuration
public int CacheDuration {get; set;}
Remarks
When set, a given chart image will be generated on the first hit and on all subsequent hits within the cache duration period the same image will be returned with no rendering work by the chart control.
Example
//Used the already generated image for upto 45 minutes.
Chart.CacheDuration = 45;
'Used the already generated image for upto 45 minutes.
Chart.CacheDuration = 45
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also