←Select platform

AutoDeleteAttachmentsFromCache Property

Summary

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

Syntax
C#
VB
C++
public bool AutoDeleteAttachmentsFromCache {get; set;} 
Public Property AutoDeleteAttachmentsFromCache() As Boolean 
   Get 
   Set 
public:  
   property bool AutoDeleteAttachmentsFromCache 
   { 
      bool get() 
      void set(bool value) 
   } 

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.

Refer to Document Attachments for more information.

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.