用户设置中保存的列表出错:字符串无法保存 [英] Error in List saved in user settings: strings doesn't save
本文介绍了用户设置中保存的列表出错:字符串无法保存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在我的用户设置中保存了一个List,它应该保存几个字符串,但是当我检查它的值(通过Settings.Default.FileList.Count)时,它会显示该值为0,当我保存字符串时,它显示保存的字符串数量
,但是当我更改表单或我重新启动应用程序时,它再次为0.。
推荐答案
要检查两件事:
Two things to check:
- 确认您没有忘记致电设置 。 默认 。 保存 ()
- Verify that you didn't forget to call Settings.Default.Save()
- 确认设置的范围是"用户"。如果是"应用程序",它没有保存。
- Verify that the scope for the setting is "User". If it is "Application" it doesn't save.
这篇关于用户设置中保存的列表出错:字符串无法保存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文