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 > UploadDocumentOptions Class : CachePolicy Property |
public CacheItemPolicy CachePolicy {get; set;}
'Declaration
Public Property CachePolicy As CacheItemPolicy
'Usage
Dim instance As UploadDocumentOptions 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 uploading documents, refer to Uploading Using the Documents Library.
For an example, refer to DocumentFactory.UploadDocument.