Class IsolatedStorageProvider
Provides functionality to save and load persistence data to and from the IsolatedStorage.
Inheritance
Namespace: Telerik.Windows.Persistence.Storage
Assembly: Telerik.Windows.PersistenceFramework.dll
Syntax
public class IsolatedStorageProvider : Object, IStorageProvider
Constructors
IsolatedStorageProvider()
Initializes a new instance of the IsolatedStorageProvider class.
Declaration
public IsolatedStorageProvider()
IsolatedStorageProvider(PersistenceManager)
Initializes a new instance of the IsolatedStorageProvider class.
Declaration
public IsolatedStorageProvider(PersistenceManager manager)
Parameters
PersistenceManager
manager
The Manager. |
Properties
FileExtension
Gets the file's extension.
Declaration
protected string FileExtension { get; }
Property Value
System.String
|
Manager
Gets the persistence manager.
Declaration
protected PersistenceManager Manager { get; }
Property Value
PersistenceManager
|
Methods
DeleteIsolatedStorageFiles()
Deletes the saved isolated storage files.
Declaration
public virtual void DeleteIsolatedStorageFiles()
GetIsolatedStoreOverride()
Gets the isolated storage store.
Declaration
protected virtual IsolatedStorageFile GetIsolatedStoreOverride()
Returns
System.IO.IsolatedStorage.IsolatedStorageFile
Returns the isolated storage store. |
IncreaseQuota(Int64)
Manually increases the quota of the IsolatedStorage.
Declaration
public virtual bool IncreaseQuota(long newSize)
Parameters
System.Int64
newSize
The new size in bytes. |
Returns
System.Boolean
Returns true if the quota is increased. |
LoadFromStorage()
Loads persisted data from the IsolatedStorage.
Declaration
public virtual void LoadFromStorage()
Implements
LoadFromStorage(String[])
Loads from storage.
Declaration
public virtual void LoadFromStorage(params string[] storageIds)
Parameters
System.String[]
storageIds
The storage ids to load. |
OnQuotaRequestedRaised(QuotaRequestedEventArgs)
Raises the QuotaRequested event.
Declaration
protected virtual void OnQuotaRequestedRaised(QuotaRequestedEventArgs args)
Parameters
QuotaRequestedEventArgs
args
The Event args. |
ResolveDeserializationStreamOverride(Stream)
Resolves the deserialization stream override.
Declaration
protected virtual Stream ResolveDeserializationStreamOverride(Stream stream)
Parameters
System.IO.Stream
stream
The stream. |
Returns
System.IO.Stream
|
ResolveSerializationStreamOverride(Stream)
Resolves the serialization stream.
Declaration
protected virtual Stream ResolveSerializationStreamOverride(Stream stream)
Parameters
System.IO.Stream
stream
The stream. |
Returns
System.IO.Stream
|
SaveToStorage()
Saves persisted data in the IsolatedStorage.
Declaration
public virtual void SaveToStorage()
Implements
SaveToStorage(String[])
Saves persisted data in the IsolatedStorage.
Declaration
public virtual void SaveToStorage(params string[] storageIds)
Parameters
System.String[]
storageIds
The storage ids to save. |
Events
QuotaRequested
Raised when additional quota is requested.
Declaration
public event EventHandler<QuotaRequestedEventArgs> QuotaRequested
Event Type
System.EventHandler<QuotaRequestedEventArgs>
|