【发布时间】:2010-12-06 11:14:31
【问题描述】:
我最近编写了一个相当大的自定义配置组。我很好奇是否可以通过以下方式将此配置移动到单独的文件中:
<configuration>
<configSections>
<sectionGroup name="MyCustomGroup">
<section name="MyCustomSection"/>
</sectionGroup>
</configSections>
<MyCustomGroup file="alt.config" />
</configuration>
这类似于您可以对 appSettings 的文件属性执行的操作。我意识到很可能需要为我的自定义部分处理程序创建一个 ConfigurationPropertyAttribute,但是我没有成功找到这方面的任何示例或方向。
【问题讨论】:
标签: .net handler custom-configuration