machine.config

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Angela

    #1

    machine.config

    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.
  • Rajasi Saha

    #2
    Re: machine.config

    You can use the ConfigurationSe ttings class to read settings off
    machine.config. For e.g. if you want a value from app settings, you do:
    ConfigurationSe ttings.AppSetti ngs["key"]

    rajasi

    "Angela" <Angela.Sprange r@globalcrossin g.com> wrote in message
    news:028701c379 68$3ce02cb0$a40 1280a@phx.gbl.. .[color=blue]
    > 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.[/color]


    Comment

    Working...