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

GetDescendentSectionGroupFactories() private method

private GetDescendentSectionGroupFactories ( string configKey ) : ArrayList
configKey string
return System.Collections.ArrayList
        private ArrayList GetDescendentSectionGroupFactories(string configKey) {

            ArrayList sectionGroups = new ArrayList();

            string configKeyAncestor;
            if (configKey.Length == 0) {
                configKeyAncestor = string.Empty;
            }
            else {
                configKeyAncestor = configKey + "/";
            }
            
            foreach (FactoryId factoryId in SectionGroupFactories.Values) {
                if (factoryId.ConfigKey == configKey || StringUtil.StartsWith(factoryId.ConfigKey, configKeyAncestor)) {
                    sectionGroups.Add(factoryId);
                }
            }

            return sectionGroups;
        }