New to Telerik UI for WPFStart a free 30-day trial

Represents the IsolatedCacheStorage class.

Definition

Constructors

Initializes a new instance of the IsolatedStorageCache class.

C#
public IsolatedStorageCache()

Initializes a new instance of the IsolatedStorageCache class.

C#
public IsolatedStorageCache(string cachePath, IsolatedStorageFile isolatedStorageFile)
Parameters:cachePathstring

Path to the cached files.

isolatedStorageFileIsolatedStorageFile

IsolatedStorageFile instance.

Methods

Clears all files in the cache.

C#
public void Clear()

Creates a stream.

C#
protected override Stream CreateCacheStream(string fileName)
Parameters:fileNamestring

File name.

Returns:

Stream

Stream.

Overrides: FileCacheBase.CreateCacheStream(string)

Obtains file names according to mask.

C#
protected override string[] GetFiles(string cachePath, string fileMask)
Parameters:cachePathstring

Path.

fileMaskstring

File mask.

Returns:

string[]

File list.

Overrides: FileCacheBase.GetFiles(string, string)

Loads file metadata.

C#
protected override MemoryCache.ICacheRecordMetadata LoadFileMetadata(string fileName)
Parameters:fileNamestring

File name.

Returns:

MemoryCache.ICacheRecordMetadata

ICacheRecordMetadata implementation instance.

Overrides: FileCacheBase.LoadFileMetadata(string)

Calls when the CachePath property is changed.

C#
protected override void OnCachePathChanged(string oldValue, string newValue)
Parameters:oldValuestring

Old value.

newValuestring

New value.

Overrides: FileCacheBase.OnCachePathChanged(string, string)

Returns stream to the file name.

C#
protected override Stream OpenCacheStream(string fileName)
Parameters:fileNamestring

File name.

Returns:

Stream

Stream.

Overrides: FileCacheBase.OpenCacheStream(string)

Removes file by name.

C#
protected override void RemoveFile(string fileName)
Parameters:fileNamestring

File name.

Overrides: FileCacheBase.RemoveFile(string)

Saves file metadata.

C#
protected override void SaveFileMetadata(MemoryCache.ICacheRecordMetadata cacheRecord)
Parameters:cacheRecordMemoryCache.ICacheRecordMetadata

Cache record metadata.

Overrides: FileCacheBase.SaveFileMetadata(MemoryCache.ICacheRecordMetadata)