开发者

Settings for application after release

开发者 https://www.devze.com 2023-04-12 00:09 出处:网络
I have a winforms (C#) application in which will have some settings I want to modify after its built.

I have a winforms (C#) application in which will have some settings I want to modify after its built.

I am thinking of a simple XML file with properties like:

 <Settings>
    <Username>MyUsername</Username>
    <RealName>MyRealName</RealName>
  &开发者_JAVA百科lt;/Settings>

These values should I be able to change after its released as a exe file. Maybe in a XML file stored next to it. Is this possible?


You probably want to look at app.config - this is precisely for this purpose.

See the MSDN reference here: http://msdn.microsoft.com/en-us/library/ms184658(v=vs.80).aspx

In particular check the <appSettings> section.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号