相关疑难解决方法(0)

自定义ConfigurationSection到外部.config

我知道有一种简单的方法可以将任何"标准"配置部分移动到外部文件,即

<appSettings file="myFile.config">
Run Code Online (Sandbox Code Playgroud)

但是自定义ConfigurationSection怎么样?

<configSections>
    <section name="someName" type="Namespace.SomeNameConfiguration" requirePermission="false" />
</configSections>

....

<someName>
  < bla bla bla ......
</someName>
Run Code Online (Sandbox Code Playgroud)

有没有类似的方法?

c# asp.net web-config

9
推荐指数
1
解决办法
7384
查看次数

标签 统计

asp.net ×1

c# ×1

web-config ×1