←Select platform

HasCache Property

Summary

Indicates whether this LEADDocument is using the cache.

Syntax
C#
VB
C++
Java
public bool HasCache {get;} 
Public ReadOnly Property HasCache() As Boolean 
   Get 
public:  
   property bool HasCache 
   { 
      bool get() 
   } 
public boolean hasCache() 

Property Value

true if this document uses the cache system; otherwise, false.

Remarks

Documents can contain a large number of pages and a huge amount of data. Storing all this data in the physical memory is not feasible, in most situations. Therefore, the LEADDocument class was designed to use an external caching system to store the modified data. Refer to DocumentFactory.Cache for more information.

HasCache determines if this document is using the cache system. SaveToCache can be used to save a document to the cache and it can be re-loaded using DocumentFactory.LoadFromCache. AutoDeleteFromCache and AutoSaveToCache can be used to determine what happens to the cache data associated with the document when it is disposed.

Example

For an example, refer to LEADDocument.

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.