c#在代码中怎么读取配置文件的数据

配置文件appconfig中

<add key="shujuKey" value="shujuValue" />

 

在代码中使用

string shujuValue = ConfigurationManager.AppSettings["shujuKey"];

posted @ 2020-08-07 14:51  青灯浊酒恋红尘  阅读(256)  评论(0)    收藏  举报