
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Storing Data Securely
|
977
Discussion
Isolated storage allows an application to store data that is unique to the application
and the user running it. This storage allows the application to write out state infor-
mation that is not visible to other applications or even other users of the same appli-
cation. Isolated storage is based on the code identity as determined by the CLR, and
it stores the information either directly on the client machine or in isolated stores
that can be opened and roam with the user. The storage space available to the appli-
cation is directly controllable by the administrator of the machine on which the
application operates.
The Solution uses isolation by
User, AppDomain, and Assembly by calling
IsolatedStorageFile.GetUserStoreForDomain. This creates an isolated store that is
accessible by only this user in the current assembly in the current
AppDomain:
// Get the isolated storage.
isoStorageFile = IsolatedStorageFile.GetUserStoreForDomain( );
The Storeadm.exe utility will allow you to see which isolated-storage stores have
been set up on the machine by running the utility with the
/LIST command-line
switch. Storeadm.exe is part of the .NET Framework SDK and can be located in your
Visual Studio installation directory under the \SDK\v2.0\Bin subdirectory.
The output ...