zoukankan      html  css  js  c++  java
  • System.Configuration.ConfigurationSettings.AppSettings 过时解决方法

    .net 2.0 Vs2005

    当使用ConfigurationSettings类来读取应用程序配置文件的信息时,却被警告:

    警告 1 “System.Configuration.ConfigurationSettings.AppSettings”已过时:“This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings” 


    于是马上按照提示改变写法,结果却无法在System.Configuration里找到ConfigurationManager, 真是让人崩溃.

    System.Configuration.ConfigurationSettings.AppSettings 过时解决方法
    解决办法是在项目的引用中添加"System.Configuration.dll" 的引用。

  • 相关阅读:
    多线程
    泛型
    枚举、注解
    重写comparater比较器
    Arrays工具类和Collections工具类
    重写equals和hashCode的方法
    遍历集合的方法
    关键字总结
    having 的用法
    HTTP协议
  • 原文地址:https://www.cnblogs.com/hooyes/p/hooyes_ConfigurationManager.html
Copyright © 2011-2022 走看看