webconfigurationmanager

What's the difference between the WebConfigurationManager and the ConfigurationManager?

别来无恙 提交于 2019-11-26 06:33:19
问题 What\'s the difference between the WebConfigurationManager and the ConfigurationManager ? When should I use one over the other? UPDATED I just looked at the WebConfigurationManager , and for some reason, you can\'t access the connection strings as you do in the ConfigurationManager (like an array). Can anyone tell me why MS made it like this? It seems to be a pain to get the connection string you need using the WebConfigurationManager . UPDATED AGAIN with CAVEAT! If you don\'t have a