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

 

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

 

配置文件如下:

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

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-11
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-12
相关资源
相似解决方案