在WPF中读写config配置文件
来源:互联网 发布:知乎周刊怎么看 编辑:程序博客网 时间:2024/06/16 05:06
http://blog.csdn.net/leowangzi/article/details/6679114点击打开链接
在WPF中读写config配置文件,很简单。
1. 在你的工程中,添加app.config文件。文件的内容默认为:
- <?xml version="1.0" encoding="utf-8" ?>
- <configuration>
- </configuration>
- <?xml version="1.0" encoding="utf-8" ?>
- <configuration>
- <appSettings>
- <add key="Path" value="SFSFSDSDS"/>
- <add key="NAME" value="FUCk"/>
- </appSettings>
- </configuration>
- using System.Configuration;
- string str = ConfigurationManager.AppSettings["Path"];
- Configuration cfa = ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
- cfa.AppSettings.Settings["NAME"].Value = "WANGLICHAO";
- cfa.Save();
是不是有点太基础了!
0 0
- 在WPF中读写config配置文件
- 在WPF中读写config配置文件
- 在WPF中读写config配置文件
- WPF中读写config配置文件
- WPF中读写app.config操作
- WPF读写config配置文件及XML数据的学习
- c#,WinForm中读写配置文件App.config
- C#中动态读写App.config配置文件
- 读写配置文件app.config
- 读写配置文件app.config
- 读写配置文件app.config
- 读写配置文件app.config
- 读写配置文件app.config
- 读写配置文件app.config
- 读写配置文件app.config
- 读写config,xml配置文件
- C#读写config配置文件
- C#读写config配置文件
- 推荐13款优秀的Twitter Bootstrap JavaScript插件
- 《代码大全》学习摘要(五)软件构建中的设计(上)
- Linux shell 文件权限相位点的含义
- 安卓学习140505: Android中的Surface和SurfaceView
- linux下安装mysql
- 在WPF中读写config配置文件
- C#实现无法破解的软件注册码算法
- 工作两年时的总结,今天偶然给翻到了
- 从u盘启动ms-dos
- java生成FTL文件
- 只识3个字的10亿老板
- 【大坑特坑】第六届华为“创新杯”编程大赛初赛题目(第五场)
- [置顶] Java自学视频整理(持续更新中...)
- Poj 3310 Caterpillar (并查集判环+度)