【发布时间】:2012-08-06 14:53:18
【问题描述】:
我正在使用 app.config 文件编写新应用程序。
这是我的 app.config:
<configuration>
<configSections>
<sectionGroup name="FTPServers">
<section name="section1" type="System.Configuration.SingleTagSectionHandler" />
<section name="section2" type="System.Configuration.SingleTagSectionHandler" />
</sectionGroup>
<sectionGroup name="Application">
<section name="Section3" type="System.Configuration.SingleTagSectionHandler" />
<section name="Section4" type="System.Configuration.SingleTagSectionHandler" />
<section name="Section5" type="System.Configuration.DictionarySectionHandler" />
</sectionGroup>
</configSections>
是否可以通过代码尽快在节组中添加节?
我想在我的程序中创建一个表单来修改这个配置,创建节组和在配置节之后...
谢谢
【问题讨论】:
-
您不能直接从代码修改应用程序设置,只能修改用户设置。
标签: c# app-config