Windows Phone 7<br />Li Jingnan / Wang Tao<br />2011-7-15<br />1<br />
2 days<br />2<br />
about<br />anytao| Ethos<br /><ethos:Member<br />   id = “Wang Tao”<br />   msn = anytao@live.com<br />weibo = http://weib...
about<br />http://book.anytao.net<br />
06 isolated storage<br />Wang Tao / 2011-07-15<br />
session outline<br />overview<br />storage<br />overview<br />isolated storage<br />isolatedstorage<br />application setti...
data storage<br />
isolated storage<br />
isolated storage classes<br />IsolatedStorageFile<br />represents an isolated storage area containing files and directorie...
isolated storage / save<br />10<br />
isolated storage / loading<br />11<br />
application setting<br />store settings like appsetting in web<br />use ApplicationSettings object in isolated storage<br ...
application setting / add<br />13<br />
application setting / loading<br />14<br />
application setting / delete<br />15<br />
ATFile/ATDirectory<br />16<br />
quota management<br />there are no quotas on WP<br />apps must make careful use of space<br />manage app data<br />delete ...
serialization and threads<br />serialization<br />complex object for saving and loading<br />SettingHelper<br />multi-thre...
demo<br />19<br />/ isolated storage<br />/ auth process<br />/ ATFile<br />/ isolated setting<br />03 auth context in iso...
practice<br />20<br />customized appsetting<br />
thank you<br />21<br />thank youwww.anytao.com<br />
22<br />
Upcoming SlideShare
Loading in...5
×

06 wp7 isolation storage

1,942

Published on

Published in: Business, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,942
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
12
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • 独立存储是.NET Framework 2.0引入的一个新特性,为托管代码提供了一种对每个计算机、每个用户、每个应用程序域在本地文件系统中分配一个独有的存储空间的机制。独立存储数据本身还是存储在本地文件系统中的,但是其实际位置对于应用程序是透明的,应用程序只能够访问当前用户在当前应用程序域的文件及文件夹。Silverlight独立存储基于.NET FrameWork独立存储建立,引入Windows Phone 7后又做了少许改进,作为Windows Phone 7中本地数据的基本存储方式。独立存储逻辑结构独立文件存储:独立文件存储提供类似文件系统一样的访问方式,应用程序可以文件形式在其中存储任意数据,如同操作常规文件系统一样创建、删除、访问文件及文件夹。独立设置存储:独立设置存储以键值对方式提供一种快速数据访问方式,主要用于存储一些应用设置信息。在内部,独立设置存储的数据其实也是保存在独立存储空间中的一个本地设置文件中。
  • Quota,限额。
  • 06 wp7 isolation storage

    1. 1. Windows Phone 7<br />Li Jingnan / Wang Tao<br />2011-7-15<br />1<br />
    2. 2. 2 days<br />2<br />
    3. 3. about<br />anytao| Ethos<br /><ethos:Member<br /> id = “Wang Tao”<br /> msn = anytao@live.com<br />weibo = http://weibo.com/anytao<br />runat = “Senior System Architect”<br />/><br />Jason | Ethos<br /><ethos:Member<br /> id = “Li Jingnan”<br /> msn = zengnami@hotmail.com<br />weibo= http://weibo.com/jn1981<br />runat = “SE”<br />/><br />
    4. 4. about<br />http://book.anytao.net<br />
    5. 5. 06 isolated storage<br />Wang Tao / 2011-07-15<br />
    6. 6. session outline<br />overview<br />storage<br />overview<br />isolated storage<br />isolatedstorage<br />application settings<br />misc<br />ATFile<br />quota<br />threading<br />
    7. 7. data storage<br />
    8. 8. isolated storage<br />
    9. 9. isolated storage classes<br />IsolatedStorageFile<br />represents an isolated storage area containing files and directories<br />IsolatedStorageFileStream<br />exposes a file stream access to a file stored within isolated storage<br />IsolatedStorageSettings<br />Dictionary<Tkey, Tvalue> that stores key-value pairs in isolated storage<br />9<br />
    10. 10. isolated storage / save<br />10<br />
    11. 11. isolated storage / loading<br />11<br />
    12. 12. application setting<br />store settings like appsetting in web<br />use ApplicationSettings object in isolated storage<br />use it as you would use a dictionary<br />then write object to persistent storage<br />12<br />When the user exits your application, Windows Phone automatically calls Save to save the IsolatedStorageSettings.<br />
    13. 13. application setting / add<br />13<br />
    14. 14. application setting / loading<br />14<br />
    15. 15. application setting / delete<br />15<br />
    16. 16. ATFile/ATDirectory<br />16<br />
    17. 17. quota management<br />there are no quotas on WP<br />apps must make careful use of space<br />manage app data<br />delete temporary data<br />consider async or archiving data to the cloud to reduce device storage<br />17<br />
    18. 18. serialization and threads<br />serialization<br />complex object for saving and loading<br />SettingHelper<br />multi-thread<br />use new threading to perform saving and loading<br />18<br />
    19. 19. demo<br />19<br />/ isolated storage<br />/ auth process<br />/ ATFile<br />/ isolated setting<br />03 auth context in isolated storage<br />
    20. 20. practice<br />20<br />customized appsetting<br />
    21. 21. thank you<br />21<br />thank youwww.anytao.com<br />
    22. 22. 22<br />
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×