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

GetConfigSection() private method

private GetConfigSection ( string configKey ) : ConfigurationSection
configKey string
return ConfigurationSection
        private ConfigurationSection GetConfigSection(string configKey) {
            SectionRecord sectionRecord = GetSectionRecord(configKey, false);
            if (sectionRecord != null && sectionRecord.HasResult) {
                return (ConfigurationSection) sectionRecord.Result;
            }
            else {
                return null;
            }
        }