📜  c# configurationmanager load from file - C# 代码示例

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

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