是否可以在 web.config 中的自定义 ConfigurationElement 类上使用 configSource 属性?

发布于 2024-08-11 03:49:10 字数 268 浏览 2 评论 0原文

我知道可以为配置部分引用外部配置文件,但我想更进一步,从配置元素引用配置文件。

<代码> <自定义配置部分>
<插件>

<插件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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文