bonjour tout le monde !

Question peut être simple...peut on ajouter une section à un fichier appconfig ?

Exemple de ce fichier :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
 
 
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    <sectionGroup name="FTPServers">
      <section name="xxxx" type="System.Configuration.SingleTagSectionHandler" />
      <section name="xxxxxx" type="System.Configuration.SingleTagSectionHandler" />
    </sectionGroup>
    <sectionGroup name="Application">
      <section name="section1" type="System.Configuration.SingleTagSectionHandler" />
      <section name="section2" type="System.Configuration.SingleTagSectionHandler" />
      <section name="section4" type="System.Configuration.DictionarySectionHandler" />
    </sectionGroup>
  </configSections>
 
 
  </Application>
 
</configuration>

Je voudrais ajouter autant de section possible, identique à la section 4 qui est du type : DictionarySectionHandler.

Et bien entendu, il faudra ensuite que j'ajoute les clé/valeur associés à chaque section.

merci