'System.Configuration.ConfigurationSettings.AppSettings' is obsolete

前端 未结 12 1894
被撕碎了的回忆
被撕碎了的回忆 2020-12-13 03:22

I got the following warning

\'System.Configuration.ConfigurationSettings.AppSettings\' is obsolete: \'\"This method is obsolete, it has been replace

12条回答
  •  孤街浪徒
    2020-12-13 04:22

    you must add reference of System.onfiguration in your project then add "Using System.onfiguration;"

    next step using like this:

    private string SQLConnectionString = ConfigurationManager.AppSettings["SQlConnectionString"]; 
    

提交回复
热议问题