Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.4.3
|
Leadtools.Documents Namespace > LoadDocumentOptions Class : CachePolicy Property |
public CacheItemPolicy CachePolicy {get; set;}
'Declaration
Public Property CachePolicy As CacheItemPolicy
'Usage
Dim instance As LoadDocumentOptions Dim value As CacheItemPolicy instance.CachePolicy = value value = instance.CachePolicy
public CacheItemPolicy getCachePolicy() public void setCachePolicy(CacheItemPolicy value)
public: property CacheItemPolicy^ CachePolicy { CacheItemPolicy^ get(); void set ( CacheItemPolicy^ value); }
CachePolicy is used when UseCache is set to true.
The policy must contain the desired absolute or sliding expiration date for the document and its part.
Using a cache policy does not mean the document will be stored in the cache forever, refer to AutoSaveToCache for more information on how the cache policy is used.
Refer to Loading Documents using Leadtools.Documents for detailed information.
For an example, refer to DocumentFactory.LoadFromFile or DocumentFactory.LoadFromUri.