读取类库配置文件注意事项


 NOTE2: 读取指定key的值value必须使用appConfig.AppSettings.Settings["APPLICATION_NAME"].Value方式;
     不能使用appConfig.AppSettings["APPLICATION_NAME"]方式, 否则编译器会提示
 "错误“System.Configuration.ConfigurationElement.this[System.Configuration.ConfigurationProperty]”不可访问,因为它受保护级别限制"

posted @ 2014-07-01 16:36  人来人往  阅读(290)  评论(0)    收藏  举报