我需要将大量数据从一个页面传递到另一个页面。据我所知,我有两个选择,PhoneApplicationService 和 IsolatedStorageSettings。
PhoneApplicationService 在页面之间传递时会产生很多延迟。因此,我使用了 IsolatedStorageSettings,但在从 IsolatedStorageSettings 中删除项目时,我创建了一些异常的对象。
哪个最适合处理大型复杂对象?
从 IsolatedStorageSettings 中删除项目时实际发生了什么?
谢谢
编辑:当我从 IsolatedStorageSettings 中清除或删除项目时,会为已存储的密钥创建新对象。
示例代码:
if (IsolatedStorageSettings.ApplicationSettings.Remove("FormFields"))
{
IsolatedStorageSettings.ApplicationSettings.Add("FormFields", app.response);
}
else
{
IsolatedStorageSettings.ApplicationSettings.Add("FormFields", app.response);
}