📜  c# 通过路径打开配置文件 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:07.597000             🧑  作者: Mango

代码示例1
System.Configuration.ConfigurationFileMap fileMap = new ConfigurationFileMap("Z:\Settings\appSettings.config"); //Path to your config file

 System.Configuration.Configuration configuration = System.Configuration.ConfigurationManager.OpenMappedMachineConfiguration(fileMap);