Domanda

When I use the following code:

var appStorage = IsolatedStorageFile.GetUserStoreForApplication();

string[] listDirectories = appStorage.GetDirectoryNames();

I pull up a directory called "Shared", is there any easy way to ignore this directory, or will I have to define parameters in GetDirectoryNames()?

And also, what is/can the Shared folder be used for?

È stato utile?

Soluzione

Just remove it from the results:

var appStorage = IsolatedStorageFile.GetUserStoreForApplication();
var listDirectories = appStorage.GetDirectoryNames().Where(l => l != "Shared");

It can be used for example when generating custom images as you live tiles, the images must be stored in this directory.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top