Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. ConfigurationManager - writing to App.config

ConfigurationManager - writing to App.config

Scheduled Pinned Locked Moved C#
questionalgorithmshelptutorialworkspace
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    BDJones
    wrote on last edited by
    #1

    Anyone care to help me get going? Being new to configuration files I'm a bit lost. Searching didn't lead me far, didn't find a clear example. MSDN example was brutally long.

    Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);

    config.Save();

    What is needed to create a section, and put a key / value into that section? Thanks for your help. (Have already added reference, using, and config file)

    F 1 Reply Last reply
    0
    • B BDJones

      Anyone care to help me get going? Being new to configuration files I'm a bit lost. Searching didn't lead me far, didn't find a clear example. MSDN example was brutally long.

      Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);

      config.Save();

      What is needed to create a section, and put a key / value into that section? Thanks for your help. (Have already added reference, using, and config file)

      F Offline
      F Offline
      FJJCENTU
      wrote on last edited by
      #2

      Please go to Articles and look for Custom Configuration Sections in .Net 2.0 from Luis Angel R.C. is written in VB but it's translation is very easy, and very complete and clear , only has a problem for saving at the end. Regards

      B 1 Reply Last reply
      0
      • F FJJCENTU

        Please go to Articles and look for Custom Configuration Sections in .Net 2.0 from Luis Angel R.C. is written in VB but it's translation is very easy, and very complete and clear , only has a problem for saving at the end. Regards

        B Offline
        B Offline
        BDJones
        wrote on last edited by
        #3

        Ok, found some articles. Guess my search was limited to forum posts only. This one looks pretty good. Custom Configuration Sections for Lazy Coders[^]

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups