machine.config

  • Thread starter Thread starter Angela
  • Start date Start date
A

Angela

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.
 
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
 
Back
Top