Get IsolatedStorageFile for current user : IsolatedStorage « File Directory Stream « C# / CSharp Tutorial






using System.Net;
using System;
using System.Collections;
using System.IO;
using System.IO.IsolatedStorage;
using System.Security.Policy;

class QueryIsolatedStorage
{
  public static void Main() 
  {
    IsolatedStorageFile isfs = IsolatedStorageFile.GetStore(IsolatedStorageScope.User |
                 IsolatedStorageScope.Assembly,
                 null,
                 null);
    IEnumerator e = IsolatedStorageFile.GetEnumerator(IsolatedStorageScope.User);
    while (e.MoveNext())
    {
       IsolatedStorageFile isf = (IsolatedStorageFile) e.Current;
      Url assemblyUrl = (Url) isf.AssemblyIdentity;
      Console.WriteLine("Assembly:"+assemblyUrl.Value);
      string[] files = isf.GetFileNames("*");
      foreach (string file in files) {
        Console.WriteLine(file);
      }      
    }
  }
}








15.38.IsolatedStorage
15.38.1.Save file to Isolated Storage File
15.38.2.Create Directory in your Isolated Storage File
15.38.3.Get included files in your Isolated Storage File
15.38.4.Write text out To IsoStorage
15.38.5.Read from IsolatedStorage
15.38.6.Read text in From IsoStorage
15.38.7.Open up isolated storage based on identity of user + assembly evidence
15.38.8.Writing To Isolated Storage
15.38.9.Get IsolatedStorageFile for current user
15.38.10.Read and write with IsolatedStorageFileStream