Isolated Storage

Isolated storage allows an assembly or application domain to have a reserved space in the file system to store sensitive yet persistent data. This is not completely secure, but portions of the .NET Framework Security use isolated storage to access and manipulate items in the store in a secure manner. After you obtain an isolated storage file (a store), you can use standard I/O facilities to read and write files and directories within the store. You don't have to worry about any other application corrupting your data because each application (application domain or assembly) accesses only its area in isolated storage. Listing 16.17 shows a sample of how to use isolated storage.

Listing 16.17. Using Isolated Storage
 static void ...

Get .NET Common Language Runtime Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.