我有一个配置文件,其中添加了自定义部分。如何访问ConnectionString
字段并进行更新? (我不能使用xpath或任何与xml相关的东西)
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="HandleApplication"
type="Contracts.ConfigSections.HandleApplication, Contracts"/>
</configSections>
<HandleApplication>
<Handler AppId="2" ConnectionString="XXXXXXXXXXXXX"/>
</HandleApplication>
</configuration>