Class
IsolatedStorageProvider

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:

cs-api-definition
public class IsolatedStorageProvider : IStorageProvider

Inheritance: objectIsolatedStorageProvider

Implements: IStorageProvider

Constructors

IsolatedStorageProvider(PersistenceManager)

Initializes a new instance of the IsolatedStorageProvider class.

Declaration

cs-api-definition
public IsolatedStorageProvider(PersistenceManager manager)

Parameters

manager

PersistenceManager

The Manager.

Properties

FileExtension

Gets the file's extension.

Declaration

cs-api-definition
protected string FileExtension { get; }

Property Value

string

Manager

Gets the persistence manager.

Declaration

cs-api-definition
protected PersistenceManager Manager { get; }

Property Value

PersistenceManager

Methods

DeleteIsolatedStorageFiles()

Deletes the saved isolated storage files.

Declaration

cs-api-definition
public virtual void DeleteIsolatedStorageFiles()

GetIsolatedStoreOverride()

Gets the isolated storage store.

Declaration

cs-api-definition
protected virtual IsolatedStorageFile GetIsolatedStoreOverride()

Returns

IsolatedStorageFile

Returns the isolated storage store.

IncreaseQuota(long)

Manually increases the quota of the IsolatedStorage.

Declaration

cs-api-definition
public virtual bool IncreaseQuota(long newSize)

Parameters

newSize

long

The new size in bytes.

Returns

bool

Returns true if the quota is increased.

LoadFromStorage()

Loads persisted data from the IsolatedStorage.

Declaration

cs-api-definition
public virtual void LoadFromStorage()

Implements IStorageProvider.LoadFromStorage()

LoadFromStorage(params string[])

Loads from storage.

Declaration

cs-api-definition
public virtual void LoadFromStorage(params string[] storageIds)

Parameters

storageIds

string[]

The storage ids to load.

OnQuotaRequestedRaised(QuotaRequestedEventArgs)

Raises the QuotaRequested event.

Declaration

cs-api-definition
protected virtual void OnQuotaRequestedRaised(QuotaRequestedEventArgs args)

Parameters

args

QuotaRequestedEventArgs

The Event args.

ResolveDeserializationStreamOverride(Stream)

Resolves the deserialization stream override.

Declaration

cs-api-definition
protected virtual Stream ResolveDeserializationStreamOverride(Stream stream)

Parameters

stream

Stream

The stream.

Returns

Stream

ResolveSerializationStreamOverride(Stream)

Resolves the serialization stream.

Declaration

cs-api-definition
protected virtual Stream ResolveSerializationStreamOverride(Stream stream)

Parameters

stream

Stream

The stream.

Returns

Stream

SaveToStorage()

Saves persisted data in the IsolatedStorage.

Declaration

cs-api-definition
public virtual void SaveToStorage()

Implements IStorageProvider.SaveToStorage()

SaveToStorage(params string[])

Saves persisted data in the IsolatedStorage.

Declaration

cs-api-definition
public virtual void SaveToStorage(params string[] storageIds)

Parameters

storageIds

string[]

The storage ids to save.

Events

QuotaRequested

Raised when additional quota is requested.

Declaration

cs-api-definition
public event EventHandler<QuotaRequestedEventArgs> QuotaRequested

Event Value

EventHandler<QuotaRequestedEventArgs>