加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

MySettings保存在VB 2010 .NET中的哪里?

发布时间:2020-12-17 00:06:45 所属栏目:大数据 来源:网络整理
导读:MySettings值保存在程序本身还是存储在注册表中?所以,例如,如果我用一个程序设置一个My.Settings值,那么我将程序本身复制到另一台电脑 – MySettings值是否仍然设置? 这取决于你选择的 scope.有两个范围设置 – 应用程序和用户范围. 从MSDN文章: Applicat
MySettings值保存在程序本身还是存储在注册表中?所以,例如,如果我用一个程序设置一个My.Settings值,那么我将程序本身复制到另一台电脑 – MySettings值是否仍然设置?
这取决于你选择的 scope.有两个范围设置 – 应用程序和用户范围.

从MSDN文章:

Application-scoped settings are read-only and are shared between all
users of that application. These settings are stored in the app.config
file in the section. At run time,the app.config
file will be in your bin folder and will be named with your
application’s name (MySettingsDemo.exe.config).

User-scope settings are specific for each user. They can be read and
set safely by the application code at run time. These settings are
stored in a user.config file. To be technically accurate,there are
two user.configs per user per application—one for non-roaming and one
for roaming. Although the Visual Basic 2005 documentation states that
the user.config file will be named according to the user’s name
(joe.config),this is not the case. The user.config file is created in
the:

<c:Documents and Settings>&;username>[LocalSettings]ApplicationData&;companyname>&;appdomainname>_<eid>_<hash>&;verison>.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读