[导入]SingleTagSectionHandler 的自定义元素
为使用
<configuration>
<sectionName>
<sectionName key="value" key2="value2"/>
属性
属性由用户定义。
备注
<sectionName> 元素是由 <configSections> 元素中的 <section> 标记定义的自定义元素。调用
示例
下面的示例声明一个称为 <sampleSection> 自定义元素,它包含由
<configuration>
<configSections>
<section name="sampleSection"
type="System.Configuration.SingleTagSectionHandler" />
</configSections>
<sampleSection setting1="Value1" setting2="value two"
setting3="third value" />
</configuration>
配置文件
此元素可用于应用程序目录级以外的应用程序配置文件、计算机配置文件 (Machine.config) 和 Web.config 文件中
文章来源:http://www.codeguru.cn/ShowThread.aspx?PostID=729
浙公网安备 33010602011771号