avatar
st
2
sure. but your program is in charge of loading its content....

【在 P********s 的大作中提到】
: 在运行期间可不可以由程序改其中的内容?
avatar
e*s
3
sure you can change the .config to save application user, app domain level or
individual level
of settings inside a .config file :)

【在 st 的大作中提到】
: sure. but your program is in charge of loading its content....
avatar
st
4
actually I wanted to say if your app doesnot check change and reload,
it wont know the content of the config has changed.

【在 e*********s 的大作中提到】
: sure you can change the .config to save application user, app domain level or
: individual level
: of settings inside a .config file :)

avatar
P*s
5
Thank you for all your replies. I am using the
"ConfigurationSettings.GetConfig" or
"ConfigurationSettings.AppSettings"
method to read the configurations in .config file. But I can't find a write or
set method available in System.Configuration namespace.
Could anyone point me to the right place please? A simple example code block
would be even better.
BOW//

or

【在 st 的大作中提到】
: actually I wanted to say if your app doesnot check change and reload,
: it wont know the content of the config has changed.

avatar
st
6
it's xml file, load it and change it as xml document bah

【在 P********s 的大作中提到】
: Thank you for all your replies. I am using the
: "ConfigurationSettings.GetConfig" or
: "ConfigurationSettings.AppSettings"
: method to read the configurations in .config file. But I can't find a write or
: set method available in System.Configuration namespace.
: Could anyone point me to the right place please? A simple example code block
: would be even better.
: BOW//
:
: or

avatar
P*s
7
Is this the only way? I thought .NET can provide some built-in functions to
handle it, since the schema of the config files are already defined.

write or
block

【在 st 的大作中提到】
: it's xml file, load it and change it as xml document bah
avatar
st
8
not sure, but it's pretty easy to do..... helper class it not really necessary

【在 P********s 的大作中提到】
: Is this the only way? I thought .NET can provide some built-in functions to
: handle it, since the schema of the config files are already defined.
:
: write or
: block

avatar
e*s
9

peng! search MSDN carefully...there are tons of functions to achieve what you
want to do ! ... -_-!!..

【在 P********s 的大作中提到】
: Is this the only way? I thought .NET can provide some built-in functions to
: handle it, since the schema of the config files are already defined.
:
: write or
: block

avatar
e*s
10

or
what version of .Net are you running?
framework 1.0 and 1.1 are pretty lame.....use .Net 2.0 and Widbey
instead...you can write/update/
dynamically add sections to the .config pretty easily :)

【在 P********s 的大作中提到】
: Thank you for all your replies. I am using the
: "ConfigurationSettings.GetConfig" or
: "ConfigurationSettings.AppSettings"
: method to read the configurations in .config file. But I can't find a write or
: set method available in System.Configuration namespace.
: Could anyone point me to the right place please? A simple example code block
: would be even better.
: BOW//
:
: or

avatar
P*s
11
Yes, I am using 1.1. So sounds like such functionality will be provided in
2.0. I will take a look at the 2.0 docs. Thanks for the information.
Unfortunately, .NET 2.0 still in Beta. Beta for evaluation is okay, but I
don't think using beta for production is a good idea.

write
block

【在 e*********s 的大作中提到】
:
: or
: what version of .Net are you running?
: framework 1.0 and 1.1 are pretty lame.....use .Net 2.0 and Widbey
: instead...you can write/update/
: dynamically add sections to the .config pretty easily :)

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。