←Select platform

CacheDirectory Property

Summary

Location in the file system to use for storing cache items.

Syntax
C#
VB
C++
Java
public string CacheDirectory { get; set; } 
Public Property CacheDirectory() As String 
   Get 
   Set 
public:  
   property String^ CacheDirectory 
   { 
      String^ get() 
      void set(String^ value) 
   } 
public String getCacheDirectory() 
public void setCacheDirectory(String value) 

Property Value

The location in the file system to use for storing cache items. Default value is null.

Remarks

This is the first property to set after an instance of FileCache is created. It must point to a valid directory on the file system or a network share with read/write access rights for the current process.

GetItemExternalResource can be used to get the physical file name of any cache item. This is performed using the following:

filePath = Path.Combine(CacheDirectory, RegionName, ItemName)

Requirements

Target Platforms

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

Leadtools.Caching Assembly