如何获取配置文件Web.config的AppSetting节点数据

ConfigurationManager必须要先在工程里添加system.configuration.dll程序集的引用。

1 System.Configuration.ConfigurationManager.AppSettings["logUrl"];

配置文件如下:

原文地址:https://www.cnblogs.com/lxhbky/p/5776972.html