←Select platform

AutoDeleteAttachmentsFromCache Property

Summary

Deletes document attachments from the cache when the owner document is removed.

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 document attachments from the cache when the owner document is removed; otherwise, false. The default value is true.

Remarks

The value of AutoDeleteAttachmentsFromCache controls what happens to the attachments when the owner document is deleted from the cache. If true, then the document factory will try to delete all documents with ID equal to DocumentAttachment.DocumentId from the cache when DocumentFactory.DeleteFromCache is called on the owner document.

Example

For an example, refer to DocumentAttachment.DocumentId.

Requirements

Target Platforms

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

Leadtools.Document Assembly