.netCHARTING v10.5 Documentation
Example 


dotnetCHARTING Namespace > Chart Class : CleanupPeriod Property
CleanupPeriod Property (Chart)
Gets or sets the number of minutes images are stored in the TempDirectory folder before they are deleted.
Syntax
'Declaration
 
Public Property CleanupPeriod As Integer
'Usage
 
Dim instance As Chart
Dim value As Integer
 
instance.CleanupPeriod = value
 
value = instance.CleanupPeriod
public int CleanupPeriod {get; set;}
Remarks
When .netCHARTING renders a chart a temporary file is created in the directory set by the TempDirectory property. The CleanUpPeriod property determines how frequently (in minutes) this directory is cleaned by deleting old temporary files. The default is 15 minutes and the property can be set to 0 in order to disable the cleanup in which case temp files are not automatically deleted.

Any files that start with 'dnc-' will be deleted in the temp directory.
Example
//delete old files every 30 minutes
Chart.CleanupPeriod = 30;
'delete old files every 30 minutes
Chart.CleanupPeriod = 30
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