ConfigurationSettings.GetConfig .Net 2.0 equivalent

  • Thread starter Thread starter Glenn
  • Start date Start date
G

Glenn

Hi

Anyone know the equivalent to

NameValueCollection nvc = ConfigurationSettings.GetConfig(
"SectionGroup/Section" ) as NameValueCollection;

in .Net 2.0. All the examples I've seen involve creating a customer
handler.

Surely there's still a simple way of obtaining key/pair values, but I just
can't seem to find it.

Thanks

Glenn
 
Easy really, once the hangovers gone.

NameValueCollection nvc = ConfigurationManager.GetSection(
"SectionGroup/Section" ) as NameValueCollection;
string value = nvc.Get( "Key" )
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top