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


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

Syntax

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

Example

C#Copy Code
//delete all temp files older than 10 minutes
Chart.CleanupMinimumAge = 10;
    
Visual BasicCopy Code
'delete all temp files older than 10 minutes
Chart.CleanupMinimumAge = 10

Remarks

When .netCHARTING renders a chart a temporary file is created in the directory set by the TempDirectory property. The CleanupMinimumAge ensures that only files older than this age, in minutes, will be deleted.

See Also

© 2016 All Rights Reserved.