You really ought not to write anything to app.config
, because if you do then you are limiting use of your app to Administrators only. It's better practice to write settings to a separate .config
file located in a user profile folder, e.g. <profiles><user name>Application Data<your product name>
.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…