Ejemplo n.º 1
0
        //
        // Get a config section.
        //
        public object GetSection(string section, string configPath)
        {
            BaseConfigurationRecord configRecord = (BaseConfigurationRecord)GetUniqueConfigRecord(configPath);
            object result = configRecord.GetSection(section);

            return(result);
        }
Ejemplo n.º 2
0
 // Get a Section within the context of where we are.  What
 // ever section you retrieve here will be at the same level
 // in the hierarchy as we are.
 //
 // Note: Watch out for a situation where you request a section
 //       that will call you.
 public object GetSection(string sectionName)
 {
     return(_configRecord.GetSection(sectionName));
 }
        public object GetSection(string section, string configPath)
        {
            BaseConfigurationRecord uniqueConfigRecord = (BaseConfigurationRecord)this.GetUniqueConfigRecord(configPath);

            return(uniqueConfigRecord.GetSection(section));
        }