O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Introducing the .NET Isolated Storage API

The .NET isolated storage API uses the same stream-based model that is present in .NET for the desktop. The isolated storage API is located in the System.IO.IsolatedStorage namespace.

The IsolatedStorageFile class allows access to the virtual file system for reading and writing files, creating and deleting directories, and listing directory contents. The IsolatedStorageFile for an application can be retrieved using the static GetUserStoreForApplication method, as shown in the following example:

using (IsolatedStorageFile storageFile        = IsolatedStorageFile.GetUserStoreForApplication()){...}

IsolatedStorageFile implements IDisposable and should therefore be disposed of ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required