160 likes | 259 Views
Explore the world of isolated storage in Visual Basic .NET with Andrew Novick. Learn how to utilize this special storage location on a local hard disk for secure data management. Understand the characteristics, valid stores, and best practices for utilizing isolated storage effectively in your applications.
E N D
Isolated Storage NE Visual Basic Pro July 1, 2004 Andrew Novick
Novick Software • The consulting company of Andrew Novick • Business Applications • Design – Programming - Project ManagementCoaching - Training • SQL Server, VB, C#, VB.Net, ASP.Net, XML • http://www.NovickSoftware.comHome of the Transact-SQL User-Defined Function of the Week Isolated Storage Andrew Novick
www.NovickSoftware.com Isolated Storage Andrew Novick
In the beginning there was…. The INI file Isolated Storage Andrew Novick
On the second day there was… The REGISTRY Oy Vey Isolated Storage Andrew Novick
And the evening and the morning of the next day brought forth .Net and… The XML Config file Isolated Storage Andrew Novick
And by the way.....there was also Isolated Storage Isolated Storage Andrew Novick
Isolated Storage is: • A special location on the local hard disk that is available only to your application. Isolated Storage Andrew Novick
Characteristics of Isolated Storage • Does not require Full Trust for I/O • Available on a Per User/Per Program basis • Limited to 10Mb per file • .Net Framework decides where it is stored. Isolated Storage Andrew Novick
Valid Stores • User | Assembly • User | Assembly | Domain • Roaming | User | Assembly • Roaming | User | Assembly | Domain Isolated Storage Andrew Novick
Use of Different Stores • User | Assembly | Domain Storage Specific to a User/Program • User | Assembly Storage shared by programs that use an assembly on behalf of a user. Isolated Storage Andrew Novick
.Net Framework support is in: • System.IO.IsolatedStorage name space • Dim myIS as IsolatedStorageFile =IsolatedStorageFile.GetUserStoreForDomain Isolated Storage Andrew Novick
storeadm.exe: Utility to work with IS • Find it in ….Visual Studio 2003\sdk\v1.1\bin... • /LIST – Display existing IS for this user. • /REMOVE – Remove IS for current user. • /ROAMING – Select the roaming store • /QUIET- Only output error messages Isolated Storage Andrew Novick
Isolated Storage is Good For • Individual preferences, configuration values • Data Caches – as long as they’re under the size limitations • Temporary storage of queued info waiting for a connection. Isolated Storage Andrew Novick
Isolated Storage is NOT Good for: • Documents • Downloaded Assemblies • Secrets Isolated Storage Andrew Novick
Thanks for Coming • Please send feedback to: anovick@novicksoftware.com www.NovickSoftware.com Isolated Storage Andrew Novick