读取app.config文件

来源:互联网 发布:舍利时时彩源码 编辑:程序博客网 时间:2024/05/16 04:54

方法一

 //Configuration config = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None); //获取AppSettings的节点
 //AppSettingsSection appsection = (AppSettingsSection)config.GetSection("appSettings");
  //this.txtYwlb.Text = appsection.Settings["YWLX"].Value;

方法二
  string DesfilePath = ConfigurationManager.AppSettings["DesfilePathName"];

0 0