←Select platform

CachePolicy Property

Summary

The cache policy to use with the new document.

Syntax
C#
VB
C++
Java
public CacheItemPolicy CachePolicy { get; set; } 
Public Property CachePolicy() As CacheItemPolicy 
   Get 
   Set 
public:  
   property CacheItemPolicy^ CachePolicy 
   { 
      CacheItemPolicy^ get() 
      void set(CacheItemPolicy^ value) 
   } 
public CacheItemPolicy getCachePolicy() 
public void setCachePolicy(CacheItemPolicy value) 

Property Value

The cache policy to use for the new document that determines when the document and its parts are purged. Default value is a default CacheItemPolicy that never expires.

Remarks

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 Document Library.

Example

For an example, refer to DocumentFactory.BeginUpload.

Requirements

Target Platforms

Help Version 20.0.2020.4.3
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2020 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document Assembly