“SpecialFolder.LocalApplicationData'和'SpecialFolder.ApplicationData'之间的区别? [英] Difference between 'SpecialFolder.LocalApplicationData' and 'SpecialFolder.ApplicationData'?

查看:2441
本文介绍了“SpecialFolder.LocalApplicationData'和'SpecialFolder.ApplicationData'之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的系统,%APPDATA%引出的ApplicationData C:\\ \\Users\<使用者> \AppData\Roaming

但也有 C:\ Users\<使用者> \AppData\Local 结果
和一些更多的混乱 D:\Users\<使用者> \\ \\AppData\LocalLow

string local = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);
string roaming = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);



我的问题是,到这些位置应我的应用程序保存其数据?

My question is, to which of these locations should my application save its data?

是否有指引,使用这些地点?而且我要离开自己开放的问题,如果我选择了错误的位置?

Are there guidelines for which of these locations to use? And am I leaving myself open to problems if I choose the wrong location?

推荐答案

漫游文件夹当漫游配置文件(在域​​环境中)启用机之间复制。使用它,你想要的机器之间共享应用程序数据。的但是,不要大的文件存储在那里 - 当你这样做的IT部门不喜欢它,它增加了登录和注销的文件复制周围采取了用户的时间<。 / EM>

The Roaming folder is copied between machines when roaming profiles are enabled (in a domain environment). Use it for application data that you want to share between machines. But don't store large files in there -- IT departments don't like it when you do that, and it increases the time taken for the user to log in and to log out as the files are copied around.

本地文件夹不机器之间复制。使用它的应用程序数据是特定于一台机器。

The Local folder is not copied between machines. Use it for application data that's specific to a machine.

LocalLow 文件夹是用于低权限的任务(如Internet Explorer)。你不应该需要担心了。

The LocalLow folder is used for low-privilege tasks (such as Internet Explorer). You shouldn't need to worry about it.

有关用户专门保存的文件,你应该在文档把它们(默认) 文件夹中。

For files that the user specifically saved, you should put them (by default) in the Documents folder.

这篇关于“SpecialFolder.LocalApplicationData'和'SpecialFolder.ApplicationData'之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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