dotnetCHARTING Send comments on this topic.
CleanupPeriod Property
See Also  Example
dotnetCHARTING Namespace > Chart Class : CleanupPeriod Property


Gets or sets the number of minutes images are stored in the TempDirectory folder before they are deleted.

Syntax

Visual Basic (Declaration) 
Public Property CleanupPeriod As Integer
Visual Basic (Usage)Copy Code
Dim instance As Chart
Dim value As Integer
 
instance.CleanupPeriod = value
 
value = instance.CleanupPeriod
C# 
public int CleanupPeriod {get; set;}

Example

C#Copy Code
//delete old files every 30 minutes
Chart.CleanupPeriod = 30;
    
Visual BasicCopy Code
'delete old files every 30 minutes
Chart.CleanupPeriod = 30

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.

See Also

© 2019 All Rights Reserved.