我有一个app.config像下面,如何修改App.Config中区间值
<configuration>
<environment>
<add key="security" value="1"/> -- I want to change this value to 3
</environment>
</configuration>
我试着像下面去环境部分,
Configuration config = ConfigurationManager.OpenExeConfiguration(exePath);
var environment = config.GetSection("environment");
环境变量不给我足够的选项来让子元素修改值。有没有人可以帮我解决这个问题。
请看[this](http://stackoverflow.com/questions/8785502/storing-remember-me-information-locally-c-sharp-total-newbeginner/8785646)问题 – Shai 2012-01-12 10:25:55
环境的类型是什么'配置部分? – Oded 2012-01-12 10:31:11
@Oded它没有任何类型。 – Lamps 2012-01-12 10:38:34