Thursday, March 22, 2012

system.object to namevalue collection

I'm reading some stuff in a custom section of the
web.config file into a name value collection. What do I
need to do to make this work:

Dim nvcConfig As NameValueCollection = _
ConfigurationSettings.GetConfig
("myApp/mySection ")

With option strict on?See:

http://msdn.microsoft.com/library/d...ionsections.asp

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
The more I learn, the less I know.

"Charles" <a@.b.c> wrote in message
news:0b3c01c36e2f$fca64820$a401280a@.phx.gbl...
> I'm reading some stuff in a custom section of the
> web.config file into a name value collection. What do I
> need to do to make this work:
> Dim nvcConfig As NameValueCollection = _
> ConfigurationSettings.GetConfig
> ("myApp/mySection ")
> With option strict on?

0 comments:

Post a Comment