System.Configuration.ConfigurationSectionGroupCollection.Remove C# (CSharp) Метод

Remove() публичный Метод

public Remove ( string name ) : void
name string
Результат void
        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);
            }
        }