如何在metro风格的应用程序中保存ApplicationData中的类对象 [英] How to save Class Object in ApplicationData in metro style app
问题描述
大家好,
我想在后台任务和我的移动宽带Metros应用程序之间共享一个类对象。
As ApplicationData.Current.LocalSettings无法解决目的,因为它不支持对象。
请建议我如何在ApplicationData或其他方式保存类对象。
谢谢,
Vipin
你好,
听起来你需要通过添加[DataContract]属性等来序列化复杂对象以使用ApplicationData
这是好的应该帮助的线程
Hi All,
I want to share a class object between background task and my mobile broadband Metros app.
As ApplicationData.Current.LocalSettings does not solve the purpose as it do not support the objects.
Please suggest that how I can save a class object in ApplicationData or some other way to do it.
Thanks,
Vipin
Hello there,
Sounds like you need to serialize the complex object to work with ApplicationData by adding [DataContract] attributes etc
Heres a good thread that should help
这篇关于如何在metro风格的应用程序中保存ApplicationData中的类对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!