Windows App question (C#)

mr_zack

Newcomer
Joined
Feb 12, 2003
Messages
9
Location
Houston
Windows App question

Hello,

In ASP.Net I can get infromation from a config file. I know
that I can have a config file in the bin dir:

Like myapp.exe.config, but how do I get these settings?
Can you provide an Example?

Thanks
Zack
 
Pass a section name and a key to ConfigurationSettings.GetConfig().

C#:
NameValueCollection oConfiguration = ConfigurationSettings.GetConfig("ApplicationSettings") as NameValueCollection;

[edit]You don't need to pass a key, that's done once you have the NameValueCollection[/edit]
 
Last edited:
Back
Top