当前在线人数19662
首页 - 分类讨论区 - 电脑网络 - 窗口里的风景版 -阅读文章
未名交友
[更多]
[更多]
文章阅读:Re: 问appSettings
[同主题阅读] [版面: 窗口里的风景] [作者:cute] , 2007年09月17日19:31:42
cute
进入未名形象秀
我的博客
[上篇] [下篇] [同主题上篇] [同主题下篇]

发信人: cute (小可爱), 信区: DotNet
标  题: Re: 问appSettings
发信站: BBS 未名空间站 (Mon Sep 17 19:51:30 2007), 站内

i guess that's because they introduced ConfigurationManager class
in 2.0 to ease working with appSettings and connectionStrings (thru
ConfigurationManager.AppSettings and ConfigurationManager.ConnectionStrings).
they probably don't want you to replace handlers for these sections
with your own.

for new code, i'd suggest (as in my previous post) to implement your own
section handlers, which gives you much more flexibility than appSettings,
etc
you can support whatever schemas you design in configuration files.
see the links below:

http://blogs.neudesic.com/blogs/jason_jung/archive/2006/08/08/208.aspx
http://west-wind.com/WebLog/posts/8461.aspx
http://www.codeproject.com/vb/net/customconfigsectionsNet2.asp
http://www.devnewsgroups.net/group/microsoft.public.dotnet.framework/topic43210.aspx
http://www.developer.com/net/net/article.php/3617366

【 在 cogt (苦荆茶) 的大作中提到: 】
: Microsoft has removed the ability to remove section handlers, which means
: that
: we can NOT deregister the default appSettings handler and register a new
one
: . Microsoft reduced configurability flexibility by preventing the removal
of
:  section handlers.
: 【 在 cogt (苦荆茶) 的大作中提到: 】
: : It always claims "[System.Configuration.ConfigurationErrorsException] =
{"
: : Configuration system failed to initialize"}"

--
1. 欢迎来到 鹊桥版  征友征婚 -- 寻找你生命中的爱人
2. 欢迎收听 我的电台:
                         http://radio.mitbbs.com:8000/cute.m3u
察看当前播放歌曲名请到: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
http://radio.mitbbs.com:8000/ (或者使用Winamp)
超过1600首歌和曲24x7循环播放~~Uptime > 98.8%~~



※ 来源:·BBS 未名空间站 海外: mitbbs.com 中国: mitbbs.cn·[FROM: 61.175.]

[上篇] [下篇] [同主题上篇] [同主题下篇]
[转寄] [转贴] [回信给作者] [修改文章] [删除文章] [同主题阅读] [从此处展开] [返回版面] [快速返回] [收藏] [举报]
 
回复文章
标题:
内 容:

未名交友
将您的链接放在这儿

友情链接


 

Site Map - Contact Us - Terms and Conditions - Privacy Policy

版权所有,未名空间(mitbbs.com),since 1996