Where are My.Settings saved in VB 2010 .NET?

前端 未结 4 1707
有刺的猬
有刺的猬 2020-11-29 10:19

Are My.Settings values saved in the program itself or do they get stored in the registry? So, for example, if I set a My.Settings value with a prog

4条回答
  •  甜味超标
    2020-11-29 10:51

    They're definitely not stored within the program if they're User settings - that's not very easy to implement, and rather pointless. Rather, they're stored in a configuration file in the %AppData% folder. So no, if you copied the program, the User settings wouldn't come with it, just the Application settings.

提交回复
热议问题