My Development Notes

By Haemoglobin
3/10/2010 (revision 1)

Isolated Storage

//Need IsolatedStorageFilePermission
IsoStorageFile isoStore = IsoStorageFile.GetUserStoreForAssembly(); //The same assembly within different applications always uses the same isolated store when using this method.
IsoStorageFile isoStore = IsoStorageFile.GetUserStoreForDomain(); //The same assembly code will use different isolated stores when used in the context of different applications.
IsoStorageFile isoStore = IsoStorageFile.GetMachineStoreForAssembly(); 
IsoStorageFile isoStore = IsoStorageFile.GetMachineStoreForDomain(); 
IsoStorageFile isoStore = IsoStorageFile.GetStore(storeName); 

IsolatedStorageFileStream isoFile = new IsolatedStorageFileStream(fileName, FileMode.Create, isoStore); 
StreamWriter sw = new StreamWriter(isoFile); 


Comments

Powered by BlogEngine.NET 1.6.1.0 | Design by styleshout | Enhanced by GravityCube.net | 1.4.5 Changes by zembian.com | Adapted by HamishGraham.NET
(c) 2010 Hamish Graham. Banner Image (c) Chris Gin