Click or drag to resize

PdfStorageAdapterRemoveOldPrintRenderings Method

Remove all cached print renderings older than a given period of time.

Namespace:  RadPdf.Integration
Assembly:  RadPdf (in RadPdf.dll) Version: 3.44.0.0 (3.44.0.0)
Syntax
public void RemoveOldPrintRenderings(
	TimeSpan olderThan
)

Parameters

olderThan
Type: SystemTimeSpan
Resources older than this value will be removed from storage.
Remarks

This method is typically used to perform maintenance on the storage provider used by RAD PDF.

This operation may require a substantial amount of time to complete.

olderThan should be a positive TimeSpan value.

Examples
In this example, we run a portion of the RAD PDF maintenance routinue. Typically, removing print renderings older than about 1 hour is most effective.
C#
// Create a new instance of the PdfStorageAdapter using settings from web.config
using(PdfStorageAdapter adapter = new PdfStorageAdapter())
{
    adapter.RemoveOldPrintRenderings(new TimeSpan(1, 0, 0));
}
See Also