在.NET Windows应用程序中存储用户设置的首选方法是什么? [英] What's the preferred method for storing user settings in a .NET windows application?

查看:34
本文介绍了在.NET Windows应用程序中存储用户设置的首选方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请原谅我的无知,但我从未真正开发Windows应用程序.您如何存储用户设置?嵌入式数据库是首选方法吗?

Pardon my ignorance, but I've never really developed Windows applications. How do you store user settings? Is an embedded database the preferred method?

推荐答案

我认为您正在寻找

.NET Framework 2.0允许您创建和访问的值是在应用程序之间持续存在执行会议.这些值是称为设置.设置可以代表用户的偏好,或者有价值的信息应用需要使用.例如,您可能创建一系列存储设置用户对配色方案的偏好的应用程序.否则您可能会存储指定一个字符串的连接字符串应用程序使用的数据库.设置可让您同时坚持对代码之外的应用程序,以及创建用于存储配置文件的配置文件个人用户的偏好.

The .NET Framework 2.0 allows you to create and access values that are persisted between application execution sessions. These values are called settings. Settings can represent user preferences, or valuable information the application needs to use. For example, you might create a series of settings that store user preferences for the color scheme of an application. Or you might store the connection string that specifies a database that your application uses. Settings allow you to both persist information that is critical to the application outside of the code, and to create profiles that store the preferences of individual users.

这篇关于在.NET Windows应用程序中存储用户设置的首选方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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