我使用IConfigurationSectionHandler接口獲取有關我的自定義配置部分的信息。但它已過時,我想用ConfigurationSection代替。自定義配置部分
如何創建這種觀點的自定義配置節和使用的ConfigurationSection代替IConfigurationSectionHandler:
<CustomSectionBlaBla>
<Parent name="DB">
<FirstChild value="someValue"/>
<SecondChild value="someValue"/>
<Parent/>
...
<Parent name="UI">
<FirstChild value="someValue"/>
<SecondChild value="someValue"/>
<Parent/>
<CustomSectionBlaBla/>
+1這,這也只有這個。儘管對於最基本類型的配置部分[3個簡單步驟中的自定義配置部分]略有涉及的概述(http://haacked.com/archive/2007/03/11/custom-configuration-sections-in- 3-易於steps.aspx)。 –