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

Provides functionality to save and load persistence data to and from the IsolatedStorage.

Definition

Namespace:Telerik.Windows.Persistence.Storage

Assembly:Telerik.Windows.PersistenceFramework.dll

Syntax:

C#
public class IsolatedStorageProvider : IStorageProvider

Inheritance: objectIsolatedStorageProvider

Implements: IStorageProvider

Constructors

Initializes a new instance of the IsolatedStorageProvider class.

C#
public IsolatedStorageProvider(PersistenceManager manager)
Parameters:managerPersistenceManager

The Manager.

Properties

Gets the file's extension.

C#
protected string FileExtension { get; }

Gets the persistence manager.

C#
protected PersistenceManager Manager { get; }

Methods

Deletes the saved isolated storage files.

C#
public virtual void DeleteIsolatedStorageFiles()

Gets the isolated storage store.

C#
protected virtual IsolatedStorageFile GetIsolatedStoreOverride()
Returns:

IsolatedStorageFile

Returns the isolated storage store.

Manually increases the quota of the IsolatedStorage.

C#
public virtual bool IncreaseQuota(long newSize)
Parameters:newSizelong

The new size in bytes.

Returns:

bool

Returns true if the quota is increased.

Loads persisted data from the IsolatedStorage.

C#
public virtual void LoadFromStorage()

Implements: IStorageProvider.LoadFromStorage()

Loads from storage.

C#
public virtual void LoadFromStorage(params string[] storageIds)
Parameters:storageIdsstring[]

The storage ids to load.

Raises the QuotaRequested event.

C#
protected virtual void OnQuotaRequestedRaised(QuotaRequestedEventArgs args)
Parameters:argsQuotaRequestedEventArgs

The Event args.

Resolves the deserialization stream override.

C#
protected virtual Stream ResolveDeserializationStreamOverride(Stream stream)
Parameters:streamStream

The stream.

Returns:

Stream

Resolves the serialization stream.

C#
protected virtual Stream ResolveSerializationStreamOverride(Stream stream)
Parameters:streamStream

The stream.

Returns:

Stream

Saves persisted data in the IsolatedStorage.

C#
public virtual void SaveToStorage()

Implements: IStorageProvider.SaveToStorage()

Saves persisted data in the IsolatedStorage.

C#
public virtual void SaveToStorage(params string[] storageIds)
Parameters:storageIdsstring[]

The storage ids to save.

Events

Raised when additional quota is requested.

C#
public event EventHandler<QuotaRequestedEventArgs> QuotaRequested