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 ...

Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.