Click here to Skip to main content
15,891,745 members
Articles / Programming Languages / XML

Need a SetConfig method for your Configuration Settings? What about an AppSettingsWriter?

Rate me:
Please Sign up or sign in to vote.
3.63/5 (14 votes)
20 Jan 20063 min read 50.3K   678   33  
Here are the configuration classes that allow you to modify your config file.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    <section name="customSettings" type="ConfigurationSettingsRWSample.CustomSettingsSectionHandler, ConfigurationSettingsRW" />
  </configSections>
  <appSettings>
    <add key="key1" value="value1" />
    <add key="key2" value="value2" />
    <add key="key3" value="value3" />
  </appSettings>
  <customSettings>
    <field attr1="11" attr2="12" attr3="13" />
    <field attr1="21" attr2="22" attr3="23" />
    <field attr1="31" attr2="32" attr3="33" />
  </customSettings>
</configuration>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
CEO http://startech.ro
Romania Romania
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions