Class SessionFileRasterTileCache
This class is a concrete class that inherits from FileBitmapTileCache. In this class, the tiles will be marked as obsolete when you call the ClearCache method and will be deleted in a background thread.
public class SessionFileRasterTileCache : FileRasterTileCache
- Inheritance
-
SessionFileRasterTileCache
- Inherited Members
Constructors
SessionFileRasterTileCache()
This is the default constructor.
public SessionFileRasterTileCache()
Remarks
If you use this constructor, you must set the properties manually.
SessionFileRasterTileCache(string)
This is the overloads constructor.
public SessionFileRasterTileCache(string cacheDirectory)
Parameters
cacheDirectory
stringThis parameter specifies the directory of the tileView cache.
Remarks
If you use this constructor, the other properties are set with default values.
SessionFileRasterTileCache(string, string)
This is the overloads constructor.
public SessionFileRasterTileCache(string cacheDirectory, string cacheId)
Parameters
cacheDirectory
stringThis parameter specifies the directory of the tileView cache.
cacheId
stringThis parameter specifies the cache ID of the tileView cache.
Remarks
If you use this constructor, the other properties are set with default values.
SessionFileRasterTileCache(string, string, GeoImageFormat)
This is the constructor with all the parameters needed passed in.
public SessionFileRasterTileCache(string cacheDirectory, string cacheId, GeoImageFormat imageFormat)
Parameters
cacheDirectory
stringThis parameter specifies the directory of the tileView cache.
cacheId
stringThis parameter specifies the cache IF of the tileView cache.
imageFormat
GeoImageFormatThis parameter specifies the image format of the tileView cahce.
Methods
ClearCacheCore()
This method will create a new cacheId for the SessionFileBitmapTileCache and mark the original one as obsolete. The original will then be deleted in a background thread.
protected override void ClearCacheCore()
Remarks
This method will not take effect when ReadOnly is set to true.