Properties.Settings.Default.Save(); - >哪里是该文件 [英] Properties.Settings.Default.Save(); -> Where is that file
问题描述
我的应用程序,使用设置。 要保存设置我使用:
I have app that uses Settings. To save settings I use:
Properties.Settings.Default.Save();
要读艾德里安我使用的:
To read tham I use:
Properties.Settings.Default.MyCustomSetting;
在我的文件夹中的应用程序,我只有exe文件。 没有配置文件。我的应用程序的工作很好,能读写设置。
In my folder with application I have only exe file. No config files. My application works good, can read write settings.
在哪里该文件位于如果不是在应用程序文件夹?
Where is that file located if it is not in application folder?
推荐答案
在我的Windows XP机器,这些设置保存在一个在任 C中调用user.config某个文件:\ Documents和Settings \ <用户名> \应用数据\
或 C:\ Documents和Settings \<用户名> \本地设置\应用数据\
On My Windows XP machine, the settings are saved in a file called user.config somewhere under either C:\Documents and Settings\<UserName>\Application Data\
or C:\Documents and Settings\<UserName>\Local Settings\Application Data\
更新:
在Windows Vista和更高的位置已改为 C:\用户\&lt;用户名&GT; \应用程序数据\漫游\
和 C: \用户\&lt;用户名&GT; \应用程序数据\本地\
On Windows Vista and later, the locations have changed to C:\Users\<UserName>\AppData\Roaming\
and C:\Users\<UserName>\AppData\Local\
这篇关于Properties.Settings.Default.Save(); - &GT;哪里是该文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!