PdfStorageAdapterRemoveOldDocuments Method (TimeSpan, Boolean) |
Namespace: RadPdf.Integration
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.
This operation defaults to using the document's creation date.
// Create a new instance of the PdfStorageAdapter using settings from web.config using(PdfStorageAdapter adapter = new PdfStorageAdapter()) { adapter.RemoveOldDocuments(new TimeSpan(7, 0, 0, 0), true); }