0

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?

anderZubi
  • 6,414
  • 5
  • 37
  • 67
Newbie
  • 1,160
  • 2
  • 11
  • 24

1 Answers1

1

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.

Igor Kulman
  • 16,211
  • 10
  • 57
  • 118