private void LoadProperties (ExeConfigurationFileMap exeMap, SettingsPropertyCollection collection, ConfigurationUserLevel level, string sectionGroupName, bool allowOverwrite, string groupName)
{
Configuration config = ConfigurationManager.OpenMappedExeConfiguration (exeMap,level);
ConfigurationSectionGroup sectionGroup = config.GetSectionGroup (sectionGroupName);
if (sectionGroup != null) {
foreach (ConfigurationSection configSection in sectionGroup.Sections) {
if (configSection.SectionInformation.Name != groupName)
continue;
ClientSettingsSection clientSection = configSection as ClientSettingsSection;
if (clientSection == null)
continue;
foreach (SettingElement element in clientSection.Settings) {
LoadPropertyValue(collection, element, allowOverwrite);
}
// Only the first one seems to be processed by MS
break;
}
}
}