Nested config sections - General Discussions - General Discussions - Progress Community
 General Discussions

Nested config sections

  • Nested config sections
  • I want to create a custom config with a top node which expands to my different section nodes.

    How do I create that top node and add child sections under it? (I have used Thunder to generate each of my current sections I just now need to create that parent node which will hold all the child sections.

    Checking the SF docs the help page is currently a 404.

    Darrin

  • Finally found it

    For the child elements add a constructor

    public MyElement(ConfigElement parent) : base(parent)

    Then ref the child in the parent as

    [ConfigurationProperty("My")]

    public MyElement Twitter

        get return (MyElement)this["My"];