// // Get a config section. // public object GetSection(string section, string configPath) { BaseConfigurationRecord configRecord = (BaseConfigurationRecord)GetUniqueConfigRecord(configPath); object result = configRecord.GetSection(section); return(result); }
// 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)); }