HTML and CSS Reference
With the few exceptions represented by library folders ( Documents, Pictures, Music ), using the local
disk from within a Windows Store application is restricted to using file pickers to locate files. Once you
hold a reference to a file or folder, though, you can freely operate on them. The local disk option is
effective for those applications which intend to create and consume data that remain on the disk for
other applications to consume. If the data your application manipulates doesn't make sense outside
the application, then a direct use of the local disk is not probably the handiest option.
Note Files created in a local disk folder won't be deleted when the user uninstalls the
application. This aspect may be a pro or a con for an application depending on its
Important As you may see in Figure 10-7, a Windows Store application must also declare
as a special capability its ability to manipulate files on a removable storage device such as
an external hard disk or a USB pen drive. In addition, an application that intends to support
removable storage must declare in the Declarations tab of the manifest the types of file it
intends to work on. This is done to prevent an application's access to only any files the user
may have on an external device.
Saving to the isolated storage
Sometimes the application and its data form a monolith that users want to keep or get rid of as
a whole. This pattern is kind of new for developers used to writing classic desktop applications; it
should be instead familiar to developers with some background in the development of mobile and
Microsoft Silverlight applications.
Windows Store applications can also have their own private space where they can create files
and folders. This space is physically located on the local disk, but its content can't be accessed from
outside the application, either programmatically or through file pickers. Any files and folders created
in the application's private space are lost when the user uninstalls the application. The application's
private space is often referred to as the isolated storage .
There are three different types of isolated storage: local, roaming, and temporary . Table 10-1
provides a description of the options.
TABLE 10-1 Different types of isolated storage
Files and folders created within the local storage will only be stored on the local
machine and stay there until the user uninstalls the application. The application is
solely responsible for updating or deleting files. These files are inaccessible for other
applications and file pickers.