Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>No.</p> <p>But to avoid keys you need to do more work.</p> <p>The concrete type <a href="http://msdn.microsoft.com/en-us/library/system.configuration.keyvalueconfigurationcollection.aspx" rel="nofollow"><code>KeyValueConfigurationCollection</code></a> allows easy creation of a configuration collection by setting some properties.</p> <p>To create a more customised collection requires either extending the abstract <a href="http://msdn.microsoft.com/en-us/library/system.configuration.configurationelementcollection.aspx" rel="nofollow"><code>ConfigurationElementCollection</code></a> (but this will still be based on the add/remove/clear model as used by <code>&lt;appSettings&gt;</code>. but allowing the element names to be configured <em>but</em> this is still based on ahaving a key value for each member of the collection (this is determined by an override of <a href="http://msdn.microsoft.com/en-us/library/system.configuration.configurationelementcollection.getelementkey.aspx" rel="nofollow"><code>GetElementKey</code></a> so does not need to be directly included in the XML).</p> <p>Alternatively you can create you own, completely custom configuration collection by extending <a href="http://msdn.microsoft.com/en-us/library/system.configuration.configurationelement.aspx" rel="nofollow"><code>ConfigurationElement</code></a>, but you'll need to do all the work of parsing the child elements yourself (remember <code>ConfigurationElementCollection</code> is itself a child class of <code>ConfigurationElement</code>).</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload