public void Remove(string name) {
VerifyIsAttachedToConfigRecord();
//
// Remove the factory and section from this record, so that when config is written,
// it will contain neither a declaration or definition.
//
_configRecord.RemoveConfigurationSection(_configSectionGroup.SectionGroupName, name);
//
// Remove the section from the collection if it is no longer in the list of all SectionFactories.
//
string configKey = BaseConfigurationRecord.CombineConfigKey(_configSectionGroup.SectionGroupName, name);
if (!_configRecord.SectionFactories.Contains(configKey)) {
BaseRemove(name);
}
}