写给App.Config [英] Writing to App.Config

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

问题描述

ConfigurationSettings.AppSettings允许我从我的配置中读取但是如何写入我的配置文件?


-

有10种人。那些懂二元的人和那些没有b $ b的人。

http://code.acadx.com

(拉针回复)

ConfigurationSettings.AppSettings allows me to read from my config but how
do I write to my config file?

--
There are 10 kinds of people. Those who understand binary and those who
don''t.

http://code.acadx.com
(Pull the pin to reply)

推荐答案

Frank,
Frank,
ConfigurationSettings.AppSettings允许我从我的配置中读取但是如何写入我的配置文件?
ConfigurationSettings.AppSettings allows me to read from my config but how
do I write to my config file?




www.abderaware.com 下载TFTP服务器评估组件看看

配置类(configuration.cs)。


Cya! :-)

-

Abderaware

.NET的精细组件

打开,收听,下载。

zane a @ t abderaware.com



Download the TFTP Server eval components from www.abderaware.com and look at the
Configuration class (configuration.cs).

Cya! :-)
--
Abderaware
Fine Components For .NET
Turn on, tune in, download.
zane a@t abderaware.com


你好Frank,


写入.config文件不是一个好主意。

配置文件旨在为管理员提供一种配置

某些设置而不是保留设置的方法。

它们(通常)驻留在程序文件夹下,因此只有管理员(如果不是

另外设置)可以编辑它们。


如果你有你需要的设置坚持考虑将它们存储在

用户特定区域或特定应用区域。


-

Miha Markic [MVP C# ] - RightHand .NET咨询&软件开发

miha at rthand com
www.rthand.com

Frank Oquendo < FR **** @ acadxpin.com>在消息中写道

新闻:e1 ************** @ TK2MSFTNGP10.phx.gbl ...
Hi Frank,

Writting into .config file is not a good idea.
The config files are intended to give administrators a way to configure
certain settings and not to persist settings.
They reside (normally) under program files folder thus only admin (if not
set otherwise) can edit them.

If you have settings that you need to persist consider storing them in
user-specific or app-specific area.

--
Miha Markic [MVP C#] - RightHand .NET consulting & software development
miha at rthand com
www.rthand.com
"Frank Oquendo" <fr****@acadxpin.com> wrote in message
news:e1**************@TK2MSFTNGP10.phx.gbl...
ConfigurationSettings.AppSettings允许我从我的配置中读取但是如何写入我的配置文件?
ConfigurationSettings.AppSettings allows me to read from my config but how
do I write to my config file?



On Tue,2004年2月10日08:41:50 + 0100,Miha Markic [MVP C#]" < miha at rthand com>

写道:
On Tue, 10 Feb 2004 08:41:50 +0100, "Miha Markic [MVP C#]" <miha at rthand com>
wrote:
配置文件旨在为管理员提供一种配置
某些设置的方法,而不是持久化设置。
它们(通常)驻留在程序文件文件夹下,因此只有管理员(如果没有设置否则)可以编辑它们。
The config files are intended to give administrators a way to configure
certain settings and not to persist settings.
They reside (normally) under program files folder thus only admin (if not
set otherwise) can edit them.




什么您对该声明有支持性文件吗?我不是故意要说b $ b b是对抗性的,我真的很想知道我是否错过了MS在这一点上所采取的一些立场




-

Abderaware

.NET的精细组件

打开,收听,下载。

zane a @ t abderaware.com



What supporting documentation do you have for that statement? I don''t mean to
be confrontational, I really am curious to know if I missed some position taken
by MS on that point.

--
Abderaware
Fine Components For .NET
Turn on, tune in, download.
zane a@t abderaware.com


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

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