Introduction
In Windows Phone 7 environment, local storage is the space available for each application. We can read and write data in this area, but we do not have access to other applications' storage areas or direct access file systems. Isolated storage is the virtual file system available within the application.
There are two main classes used; one is IsolatedStorageSettings
class and other is IsolatedStorageFile
class. Both classes are part of the namespace System.IO.IsolatedStorage
.
IsolatedStorageSettings
uses the dictionary mechanism to store data, hence it uses a key and a value pair for storing any value. Some of the most commonly used methods are Add
,
Remove
, and Contains
.
The IsolatedStorageFile
class uses isolated storage with files and directories. Therefore, you can save any file stream to the local storage using IsolatedStorageFileStream
. Some of the common methods used for managing the files are FileExists
, CreateFile
, OpenFile
, and DeleteFile
. Similarly, DirectoryExists
,...