简体   繁体   English

Windows Mobile和Properties.Settings.Default

[英]Windows Mobile and Properties.Settings.Default

I'm starting on work on my first Windows Mobile 6.5 app in C#, and I'd like to use something similar to the Properties.Settings.Default functionality in standard .Net. 我正在使用C#的第一个Windows Mobile 6.5应用程序开始工作,我想使用与标准.Net中的Properties.Settings.Default功能类似的功能。 Is there an equivalent in Windows Mobile 6.5? Windows Mobile 6.5是否具有等效功能?

The work-horse class here is System.Configuration.ApplicationSettingsBase. 这里的工作类是System.Configuration.ApplicationSettingsBase。 Not available in the Compact Framework. 在Compact Framework中不可用。 With the considerable amount of glue needed to support this class, adding it yourself isn't an option either. 由于需要大量的胶水来支持此类,因此您自己也不添加它。

The System.Xml namespace contains what you need to serialize your own "settings" object. System.Xml命名空间包含序列化自己的“设置”对象所需的内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM