Is Silverlight Isolated Storage considered persistent or a cache?

How persistent is isolated storage - does Silverlight treat it as a cache, deleting items when it needs more space, or only when the user or application requests it?

There are also many ways to identify isolated storage - a machine, an application, a domain, .... I am having problems with how this all relates to the user. Is it possible, and if so, how to create and then extract an isolated storage file with the following properties:

  • The same file is used, regardless of which Windows user is registered.
  • The same file is used regardless of the version of the assembly (xap update). Instead, the url will remain constant. This should work even offline (outside the browser).

Basically, I want isolated storage to be preserved in all application updates, as well as when logging in for different users.

+6
silverlight isolatedstorage
source share
2 answers

MachineStore options are not available in Silverlight, there is only an Application and a Site. Both areas are covered by the user ... because the files are stored under the user's AppData on Windows. Applications in the browser and outside the browser share the same repositories of isolated repositories.

[edit..I skipped part of your question for the first time]: Isolated repositories are not part of the browser cache, so they are not cleared when the browser cache is cleared. As a developer, you can delete things programmatically. As a user, you can use the Silverlight configuration user interface (that is, the right-click menu) to manage stores - it is called the "application store" for the user. Finally, a fearless user can find the files on the disk and delete them manually ... they are hidden, so they will not appear in the normal search, but a specific user can still find them.

+2
source share

He is pretty permanent. The user can delete it if he really wants to, but they will have to follow the path to do this.

Here is the MSDN documentation for Isolated Storage .

IsolatedStorageFile in Silverlight has several statics that let you choose where you want to span storage:

  • GetUserStoreForApplication
  • GetUserStoreForSite
+3
source share

All Articles