1.配置文件app.config的书写:

string mdbPath = ConfigurationManager.AppSettings["mdbPath"].ToString();

2.C#读取配置文件的代码:

<?xml version="1.0"?>
<configuration>
<startup> <supportedRuntime version="v2.0.50727"/></startup>
<appSettings>
<add key="mdbPath" value="F:/cc/peopleManager.mdb"></add>
</appSettings>
</configuration>

最新文章

  1. Expression2Sql的一些语法更新
  2. session失效
  3. Spark BlockManager的通信及内存占用分析(源码阅读九)
  4. Python算法-冒泡排序
  5. Java Web 三层架构详解
  6. Linux下安装与使用本地的perl模块
  7. ccrendertexture to uiimage
  8. iOS 学习笔记 十三 (2015.04.15)采用第三方库,实现ios录音转为amr
  9. Java设计模式之简单工厂设计模式
  10. hihocoder 1049 后序遍历
  11. Linux 服务器如何修改 DNS
  12. 【行为型】Memento模式
  13. NET Core 环境搭建和命令行CLI入门
  14. Ubuntu 14.04下Redis安装报错:“You need tcl 8.5 or newer in order to run the Redis test”问题解决
  15. React从入门到放弃之前奏(3):Redux简介
  16. node vue 项目部署问题汇总
  17. URLConnection和HttpURLConnection
  18. Phoenix 5.0 hbase 2.0 org.apache.hadoop.security.authentication.util.KerberosUtil.hasKerberosKeyTab
  19. HTML5实现微信聊天气泡效果
  20. CSS之Medial Queries的另一用法:实现IE hack的方法

热门文章

  1. C# 反射 表达式树 模糊搜索
  2. CSS3 文本装饰
  3. 常用sql笔记
  4. ThinkPHP表单令牌验证功能详细介绍
  5. lamp环境中的/到底是指的网站根目录还是linux的根
  6. Activity singleInstance启动模式
  7. log4j详细配置说明
  8. 解决poi导出Excel异常org.openxmlformats.schemas.spreadshe
  9. onchange事件
  10. 一个简单的C#获取Session、设置Session类文件