CrystalImageCleaner.Start Method

Starts a thread to delete images in the viewers' virtual directory.

Namespace CrystalDecisions.Web Assembly CrystalDecisions.Web (CrystalDecisions.Web.dll)

Syntax

'Declaration
Public Shared Sub Start ( _
    ByVal sleep As Integer, _   
    ByVal age As System.Int64, _    
    ByVal application As System.Web.HttpApplicationState _  
) 
public static void Start (
    int sleep,
    System.Int64 age,
    System.Web.HttpApplicationState application
)

Parameters

  • sleep
    The time in milliseconds that the image cleaner sleeps before scanning and cleaning up image files in the dynamic image directory.
  • age
    The age in milliseconds of a file before it is deleted.
  • application
    The state of the ASP.NET application.

Example

This example shows how to start the CrystalImageCleaner. The sleep time is set to 60000, the age is set to 120000 and the application is httpContect.Application.

'Declaration

    Private Sub StartCrystalImageCleaner(ByVal myHttpContext As HttpContext)
      CrystalImageCleaner.Start(60000, 120000, myHttpContext.Application)
    End Sub
    private void StartCrystalImageCleaner(System.Web.HttpContext httpContext)
    {
      CrystalImageCleaner.Start(60000, 120000, httpContext.Application);
    }

Version Information

Crystal Reports Basic for Visual Studio 2008

Supported since: Crystal Reports .NET 9

See Also

Reference

CrystalImageCleaner Class
CrystalImageCleaner Members
CrystalDecisions.Web Namespace