怎么在配置文件中去读取键值对,配置节点呢?现在配置文件如下:
添加:
<appSettings>
<add key="IsNewApp" value="true" />
</appSettings>
读取的方法是:
string IsNewApp = System.Configuration.ConfigurationManager.AppSettings["IsNewApp"];
怎么在配置文件中去读取键值对,配置节点呢?现在配置文件如下:
添加:
<appSettings>
<add key="IsNewApp" value="true" />
</appSettings>
读取的方法是:
string IsNewApp = System.Configuration.ConfigurationManager.AppSettings["IsNewApp"];