一 创建类AddinSectionHandler ,实现IConfigurationSectionHandler接口的Create方法
   }

二 增加一个这样的类

    }


三 App.config中配置
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <configSections>
    <section name="ServerAssemblys" type="ConfigLoad.AddinSectionHandler,ConfigLoad"/>
  </configSections>
  <ServerAssemblys>
    <Assembly dllFile="111.dll" addinClass="aaa" />
    <Assembly dllFile="222.dll" addinClass="bbb" />
  </ServerAssemblys>
</configuration>


四 程序调用
源码

相关文章:

  • 2022-02-09
  • 2021-12-29
  • 2022-12-23
  • 2021-11-23
  • 2021-05-29
  • 1970-01-01
  • 2021-05-23
猜你喜欢
  • 2022-12-23
  • 2021-05-19
  • 2021-10-25
  • 2021-11-10
相关资源
相似解决方案