autoDeleteAttachmentsFromCache Property

Summary

Controls what happens to the external attachment documents when the owner document is deleted from the cache.

Syntax
TypeScript
JavaScript
Object.defineProperty(LEADDocument.prototype, 'autoDeleteAttachmentsFromCache', 
   get: function(), 
   set: function(value) 
) 
autoDeleteAttachmentsFromCache: boolean; 

Property Value

true to delete all external attachment documents when the owner document is deleted from the cache; otherwise, false. The default value is true.

Remarks

The value of autoDeleteAttachmentsFromCache controls what happens to the external attachment documents when the owner document is deleted from the cache. If true (the default value), then the document factory will try to delete all documents with an ID equal to DocumentAttachment.documentId from the cache when DocumentFactory.deleteFromCache is called on the owner document.

For more information, refer to Document Attachments.

Example

For an example, refer to DocumentAttachment.documentId.

Requirements
Target Platforms
Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document Assembly

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.