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 > CreateDocumentOptions Class : CachePolicy Property |
public CacheItemPolicy CachePolicy {get; set;}
'Declaration
Public Property CachePolicy As CacheItemPolicy
'Usage
Dim instance As CreateDocumentOptions 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); }
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.
For more information on creating documents, refer to DocumentFactory.Create.
For an example, refer to DocumentFactory.Create.