C# 获取 app.config 配置文件中的 appSettings 节点值


app.config 配置文件中的 appSettings 节点:

<appSettings>
    <add key="test" value="testValue" />
</appSettings>

C#获取代码:

var t= ConfigurationManager.AppSettings["test"]

需引用:using System.Configuration;

相关阅读 >>

c# 获取 app.config 配置文件中的 appsettings 节点值

更多相关阅读请进入《app.config》频道 >>




打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...