O'Reilly logo

Pro Silverlight 5 in VB by Matthew MacDonald

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

Using Isolated Storage

Isolated storage is easy to use because it exposes the same stream-based model that's used in ordinary .NET file access. You use the types in the System.IO.IsolatedStorage namespace, which are a core part of the Silverlight runtime.

Opening an Isolated Store

Silverlight creates isolated stores automatically. To interact with an isolated store, you use the IsolatedStorageFile class. You get the IsolatedStorageFile object for the current user and application by calling the shared IsolatedStorageFile.GetUserStoreForApplication() method, as shown here:

Dim store As IsolatedStorageFile = IsolatedStorageFile.GetUserStoreForApplication()

Usually, this gives you exactly what you want: an application-specific, user-specific location ...

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