标签:
ExeConfigurationFileMap map = new ExeConfigurationFileMap(); map.ExeConfigFilename = "SomeApp.config"; Configuration libConfig = ConfigurationManager.OpenMappedExeConfiguration(map, ConfigurationUserLevel.None); string strValue = libConfig.AppSettings.Settings["somekey"].Value;
标签:
原文地址:http://my.oschina.net/shanlilaideyu/blog/484544