runliuv

runliuv@cnblogs

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
ExeConfigurationFileMap map = new ExeConfigurationFileMap();
                map.ExeConfigFilename = GPARAM._configFileFullName;
                var config = ConfigurationManager.OpenMappedExeConfiguration(map, ConfigurationUserLevel.None);

                var sett = config.AppSettings.Settings["client_req_us"];
                if (sett != null && sett.Value != "1" && model != null && model.log_type == "client_req_us")
                {
                    return;
                }

                sett = config.AppSettings.Settings["third_return_us"];
                if (sett != null && sett.Value != "1" && model != null && model.log_type == "third_return_us")
                {
                    return;
                }

0--

项目要引用 System.Configuration.DLL

类文件中 using System.Configuration;

posted on 2019-03-22 17:59  runliuv  阅读(180)  评论(0编辑  收藏  举报