Beispiel #1
0
 private static void LoadConfigSection()
 {
     try
     {
         dataSourceSection = (DataSourceSection)ConfigurationManager.GetSection(dataSourceSectionName);
     }
     catch (Exception ex)
     {
         throw new ConfigurationErrorsException("加载配置文件出错", ex);
     }
 }
Beispiel #2
0
 private static void LoadConfigSection()
 {
     try
     {
         dataSourceSection = (DataSourceSection)ConfigurationManager.GetSection(dataSourceSectionName);
     }
     catch (Exception ex)
     {
         throw new ConfigurationErrorsException("加载配置文件出错", ex);
     }
 }