Silverlight中Isolated Storage独立存储
Silverlight中的独立存储有两种使用方式:
1、文件方式,此方式使用IsolatedStorageFile类,此类包括两种子类:
IsolatedStorageSettings.SiteSettings - 按站点保存的 key-value 字典表
IsolatedStorageSettings.ApplicationSettings - 按应用程序保存的 key-value 字典表
此类常用方法有:Add, Contains,Remove
2、key-value方式,此方式使用IsolatedStorageSettings类,此类包括两种方法:
IsolatedStorageFile.GetUserStoreForSite() - 按站点获取用户的独立存储
IsolatedStorageFile.GetUserStoreForApplication() - 按应用程序获取用户的独立存储