请问在System.Configuration命名空间中的这两个类有什么区别?
ApplicationSettingsBase类 与 Configuration类
哪个适用于存储user or application配置?MSDN文档上说ApplicationSettingsBase类专用于配置windows forms程序,请问为什么?
关于ApplicationSettingsBase类
http://msdn2.microsoft.com/en-us/library/system.configuration.applicationsettingsbase.aspx谢谢解答!

解决方案 »

  1.   

    自己顶!
    高手都去哪里了?
    Configuration class – all contents defined in “Web.Config”, “App.Config” or “Machine.Config”.
    ApplicationSettingsBase – application’s settings only.
    MSDN文档上说ApplicationSettingsBase类专用于配置windows forms程序,请问为什么?
      

  2.   

    不为什么,你家就这样规定的.
    我最近在做winform,用Configuration这个类获取数据库,怎么弄也不行,今天谢楼主提醒了,原来在winform里用ApplicationSettingsBase类.
    替你顶吧
      

  3.   

    In a Windows Forms-based application, all application settings must be defined on a class derived from the ApplicationSettingsBase class.The ApplicationSettingsBase class is inherited by a number of Windows Forms controls to provide run-time access to the properties of the control, such as size, position, and so on. This class also provides the necessary functionality to persist run-time changes to control properties as user settings.