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

UseParentResult() protected method

protected UseParentResult ( string configKey, object parentResult, SectionRecord sectionRecord ) : object
configKey string
parentResult object
sectionRecord SectionRecord
return object
        override protected object UseParentResult(string configKey, object parentResult, SectionRecord sectionRecord) {
            FactoryRecord factoryRecord = FindFactoryRecord(configKey, false);
            if (factoryRecord == null) {
                throw new ConfigurationErrorsException(SR.GetString(SR.Config_unrecognized_configuration_section, configKey));
            }

            object result = CallCreateSection(false, factoryRecord, sectionRecord, parentResult, null, null, -1);
            return result;
        }