public static ConfigManageInfo GetConfig(string sectionName) { ConfigManageInfo section = (ConfigManageInfo)ConfigurationManager.GetSection(sectionName); if (section == null) { throw new ConfigurationErrorsException("Section " + sectionName + " is not found."); } return(section); }
public static ConfigManageInfo GetConfig() { ConfigManageInfo section = GetConfig("ConfigManage"); return(section); }