是否可以在 web.config 中的自定义 ConfigurationElement 类上使用 configSource 属性?
我知道可以为配置部分引用外部配置文件,但我想更进一步,从配置元素引用配置文件。
即
<代码> <自定义配置部分>
<插件>
<插件configSource =“another_plugin.config”/>
I know it's possible to reference external configuration files for a configuration section but I'd like to go one step further and reference config files from a configuration element.
i.e.
<CustomConfigSection>
<Plugins>
<Plugin configSource="plugin.config"/>
<Plugin configSource="another_plugin.config"/>
</Plugins>
</CustomConfigSection>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不确定这是否是您所指的:
http://blogs.msdn.com/tomholl/archive/ 2006/04/02/entlib2externalconfig.aspx
Not sure if this is what you're referring to:
http://blogs.msdn.com/tomholl/archive/2006/04/02/entlib2externalconfig.aspx