📜  .net 按名称打开配置文件 - C# 代码示例

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

代码示例1
ExeConfigurationFileMap configMap = new ExeConfigurationFileMap();
configMap.ExeConfigFilename = @"d:\test\justAConfigFile.config.whateverYouLikeExtension";
Configuration config = ConfigurationManager.OpenMappedExeConfiguration(configMap, ConfigurationUserLevel.None);