Imbriquée à la Section de Configuration app.config

Je ne trouve pas d'exemples de la façon d'accéder à ce type de configuration imbriquée section dans une application.config

  <my.configuration>
    <emailNotification>
      <to value="[email protected]" />
      <from value="[email protected]" />
      <subject value="Subject" />
      <smtpHost value="smtp.you.com" />
      <triggers>
        <add name="1" varAlias="Var1" lower="-200" upper="-150"/>
      </triggers>  
    </emailNotification>
  </my.configuration>

J'ai utilisé ConfigurationElementCollection et ConfigurationElement avant. Mais je ne sais pas comment le faire ci-dessus?

  • Je suppose que le my.configuration est un groupe et emailNotification est imbriquée section vous faites allusion. - Il Correct?
  • mon.la configuration de la section <section name="mon.configuration" type="IoLoggingService.MyConfigSection, IoLoggingService"/> Et emailNotification le groupe, oui
  • Je vais poster un exemple dans une minute.
InformationsquelleAutor chriszero | 2011-02-17