.net配置文件内容结构

 1 <configuration>
 2     <configsections>
 3         <section name="SectionOne" type=""/>
 4         <section name="SectionSecond" type=""/>
 5         <section name="SectionThree" type=""/>
 6         <section name="SectionFour" type=""/>
 7         <sectiongroup name="SectionGroupOne" type="">
 8             <section name="Section1" type=""/>
 9             <sectiongroup name="SectionGroupSub" type="">
10                 <section name="SectionSub" type=""/>
11           </sectiongroup>    
12         </sectiongroup>    
13     </configsections>
14     
15     <!--Section只有属性-->
16     <SectionOne SOProperty1="" SOProperty2="">
17     </SectionOne>
18     
19     <!--Section有属性,有1个子节点-->
20     <SectionTwo STProperty1="" STProperty2="">
21         <STElement STEProperty1="" STEProperyt2=""/>
22     </SectionTwo>
23     
24     <!--Section有属性,有多个不同的子节点-->
25     <SectionThree STHProperty1="" STHProperty2="">
26         <STHElementOne STHEOneProperty1="" STHEOneProperty2=""/>
27         <STHElementTwo STHETwoProperty1="" STHETwoProperty2=""/>
28     </SectionThree>
29     
30     <!--Section有属性,有多个相同的子节点-->
31     <SectionFour SFProperty1="" SFProperty2="">
32         <SFElement SFEProperty1="" SFEProperty2=""/>
33         <SFElement SFEProperty1="" SFEProperty2=""/>
34     </SectionFour>
35     
36     <!--SectionGroup无属性,可嵌套SectionGroup-->
37     <SectionGroupOne>
38         <Section1 S1Property1="" S1Property2=""></Section1>
39         <SectionGroupSub>
40             <SectionSub SSubProperty1="" SSubProperty2=""></SectionSub>
41         </SectionGroupSub>
42     </SectionGroupOne>
43 
44 </configuration>
原文地址:https://www.cnblogs.com/zhiheyang/p/2854068.html