System.AppDomain.CurrentDomain.SetData("APP_CONFIG_FILE", @"C:\ABC.CONFIG");
但是当你读取过配置文件后就再也不能更改了。
本文介绍了如何使用System.AppDomain.CurrentDomain.SetData方法来设置配置文件路径,并指出一旦读取配置文件后便无法再次更改。
System.AppDomain.CurrentDomain.SetData("APP_CONFIG_FILE", @"C:\ABC.CONFIG");
但是当你读取过配置文件后就再也不能更改了。
转载于:https://www.cnblogs.com/kklldog/p/3285076.html

被折叠的 条评论
为什么被折叠?