Error processing SSI file
LEADTOOLS Leadtools.Documents (Leadtools.Documents assembly)

Show in webframe

AutoDeleteFromCache Property






Indicates whether to delete all the entries that belong to this document from the cache when it is disposed.
Syntax
public bool AutoDeleteFromCache {get; set;}
'Declaration
 
Public Property AutoDeleteFromCache As Boolean
'Usage
 
Dim instance As Document
Dim value As Boolean
 
instance.AutoDeleteFromCache = value
 
value = instance.AutoDeleteFromCache
public boolean getAutoDeleteFromCache()
public void setAutoDeleteFromCache(boolean value)
            
public:
property bool AutoDeleteFromCache {
   bool get();
   void set (    bool value);
}

Property Value

true to delete all the entries that belong to this document from the cache when it is disposed, otherwise; false. Default value is false.
Remarks

Documents can contain large number of pages and huge amount of data. Storing all this data in the physical memory is not feasible in most situations. Therefore, the Document class was designed to use an external caching system to store the modified. 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 re-loading it using DocumentFactory.LoadFromCache.

Set AutoDeleteFromCache to true if your application uses cache to speed up processing the document and the object will not be used after it is disposed.

Set AutoDeleteFromCache to false if your application will save the document ID before disposing the document and use it to re-load the document using DocumentFactory.LoadFromCache.

To save the document to the cache, use SaveToCache or set the value of AutoSaveToCache to true before disposing the document.

Example

For an example, refer to DocumentId.

Requirements

Target Platforms

See Also

Reference

Document Class
Document Members

Error processing SSI file
   Leadtools.Documents requires a Document or Medical toolkit license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features