System.Configuration.BaseConfigurationRecord.CreateSectionDefault C# (CSharp) Метод

CreateSectionDefault() защищенный Метод

protected CreateSectionDefault ( string configKey, bool getRuntimeObject, FactoryRecord factoryRecord, SectionRecord sectionRecord, object &result, object &resultRuntimeObject ) : void
configKey string
getRuntimeObject bool
factoryRecord FactoryRecord
sectionRecord SectionRecord
result object
resultRuntimeObject object
Результат void
        protected void CreateSectionDefault(
                string configKey, bool getRuntimeObject, FactoryRecord factoryRecord, SectionRecord sectionRecord,
                out object result, out object resultRuntimeObject) {

            result = null;
            resultRuntimeObject = null;

            SectionRecord sectionRecordForDefault;
            if (sectionRecord != null) {
                sectionRecordForDefault = sectionRecord;
            }
            else {
                sectionRecordForDefault = new SectionRecord(configKey);
            }

            object tmpResult = CallCreateSection(true, factoryRecord, sectionRecordForDefault, null, null, null, -1);
            object tmpResultRuntimeObject;
            if (getRuntimeObject) {
                tmpResultRuntimeObject = GetRuntimeObject(tmpResult);
            }
            else {
                tmpResultRuntimeObject = null;
            }

            result = tmpResult;
            resultRuntimeObject = tmpResultRuntimeObject;
        }
BaseConfigurationRecord