写app.config文件值 [英] Write values in app.config file

查看:133
本文介绍了写app.config文件值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以请帮我我怎么能在app.config文件中使用C#设置/存储的值,它是在所有可能的?

can anyone please help me how can I set/store values in the app.config file using c#, is it possible at all?

推荐答案

如果您正在使用App.Config中存储的值code>或CustomSections部分使用ConfigurationManager中类,其他使用XMLDocument类。

If you are using App.Config to store values in <app Key="" Value="" /> or CustomSections section use ConfigurationManager class, else use XMLDocument class.

您可以用code贴在 $ C $的CProject

You could use the code posted on CodeProject

这篇关于写app.config文件值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆