Isolated storage is simple to use and requires knowledge of
relatively few classes. The most important class is
IsolatedStorageFile objects represent individual
stores and provide methods to manage the files and
directories contained within the stores, as well as properties to
access information, such as the store's isolation
scope, current size, and maximum size. The
IsolatedStorageFile class also provides static
factory methods through which you initially obtain store objects.
Also important is the
class, which extends
provides the mechanism through which you
read and write data to files in isolated storage.
In the following sections, we demonstrate how to use these classes to implement the use of isolated storage in your programs. First, we look at the code-access permissions used to control access to isolated storage.
code-access permission class controls access to
storage. Unlike the
that controls direct access to the hard drive, the
IsolatedStorageFilePermission class does not
control the type of access (read or write) to specific directories or
even specific stores.
IsolatedStorageFilePermission controls access to isolated storage by restricting the scope of isolation ...