System.Configuration.MgmtConfigurationRecord.FindAndCloneImmediateParentSection C# (CSharp) Method

FindAndCloneImmediateParentSection() private method

private FindAndCloneImmediateParentSection ( ConfigurationSection configSection ) : ConfigurationSection
configSection ConfigurationSection
return ConfigurationSection
        internal ConfigurationSection FindAndCloneImmediateParentSection(ConfigurationSection configSection) {
            string configKey = configSection.SectionInformation.ConfigKey;
            ConfigurationSection parentSection = FindImmediateParentSection(configSection);
            SectionRecord sectionRecord = GetSectionRecord(configKey, false);
            ConfigurationSection clone = (ConfigurationSection) UseParentResult(configKey, parentSection, sectionRecord);
            return clone;
        }