Working with IsolatedSTorageSettings for Windows 7
I was working with windows 7 application development an开发者_JS百科d trying to create the same application given on their website to create and add notes (its an app to save notes in windows phone 7).
The example has used IsolatedFileStorage to store each note. That is a new file is created everytime we create a note.
I wanted to understand how to work with IsolatedStorageSettings where instead of creating a new file for every note I could maintain a note object in the isolated storage.
Could someone point me towards some good examples/tutorials online for the same?
Thank you
My recommendation would be to stay with IsolatedStorageFile for this kind of purposes, because it will provide better performance for large data sets in general for your app.
If you do want to switch to IsolatedStorageSettings, it is very to use as it is just a key/value pair storage. So if you represent the data part of your note as an object, you can store/retrieve it in the settings simply by assigning it a unique key.
http://msdn.microsoft.com/en-us/library/system.io.isolatedstorage.isolatedstoragesettings(VS.95).aspx
精彩评论