public void Remove(string name) {
VerifyIsAttachedToConfigRecord();
_configRecord.RemoveConfigurationSectionGroup(_configSectionGroup.SectionGroupName, name);
//
// Remove the section from the collection if it is no longer in the list of all SectionGroupFactories.
//
string configKey = BaseConfigurationRecord.CombineConfigKey(_configSectionGroup.SectionGroupName, name);
if (!_configRecord.SectionFactories.Contains(configKey)) {
BaseRemove(name);
}
}