By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,918 Members | 1,557 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,918 IT Pros & Developers. It's quick & easy.

machine.config

P: n/a
How can I access the machine.config file from a C# class?
I need to verify a couple of the attributes in the
machine.config file when my app runs, but I don't know
where to begin.
Jul 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
You can use the ConfigurationSettings class to read settings off
machine.config. For e.g. if you want a value from app settings, you do:
ConfigurationSettings.AppSettings["key"]

rajasi

"Angela" <An*************@globalcrossing.com> wrote in message
news:02****************************@phx.gbl...
How can I access the machine.config file from a C# class?
I need to verify a couple of the attributes in the
machine.config file when my app runs, but I don't know
where to begin.

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.