.NET“隔离存储”存储在哪里?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/275536/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Where is .NET "Isolated Storage" stored?
提问by Corey Trager
Where would the physical files be?
物理文件在哪里?
采纳答案by Blair Conrad
It depends on the OS and whether or not roaming user profiles are enabled.
这取决于操作系统以及是否启用漫游用户配置文件。
For example, on XP, with non-roaming profiles, the location is
例如,在 XP 上,使用非漫游配置文件时,位置为
<SYSTEMDRIVE>\Documents and Settings\<user>\Local Settings\Application Data\Microsoft\IsolatedStorage
On Vista with roaming profile storage,
在具有漫游配置文件存储的 Vista 上,
<SYSTEMDRIVE>\Users\<user>\AppData\Roaming\Microsoft\IsolatedStorage
See an Introduction to Isolated Storagefor more info.
有关详细信息,请参阅独立存储简介。
回答by Mark Sowul
%LocalAppData%\IsolatedStorage/ %AppData%\IsolatedStorage.
%LocalAppData%\IsolatedStorage/ %AppData%\IsolatedStorage.
I didn't find them under "Microsoft"
我在“Microsoft”下没有找到它们
回答by arhsim
System.Diagnostics.Process.Start(
Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) +
"\IsolatedStorage"
);
回答by Joshua
I've also seen it under %ProgramData%\IsolatedStorage(so often C:\ProgramData\IsolatedStorage).
我也在%ProgramData%\IsolatedStorage(经常在 C:\ProgramData\IsolatedStorage 下)看到它。
This particular case was a Windows Server 2008 with IIS site-related data.
这个特殊案例是带有 IIS 站点相关数据的 Windows Server 2008。
回答by Wonderbird
On my XP workstation I found it under c:\Documents and Settings\\Local Settings\Application Data\Microsoft\Silverlight\is\XXXXXXXXXXXXX Where xxxxxxxx appears to be a random directory name. (under that if you wander around enough you should find the store for your particular app...)
在我的 XP 工作站上,我在 c:\Documents and Settings\\Local Settings\Application Data\Microsoft\Silverlight\is\XXXXXXXXXXXXXX 下找到它,其中 xxxxxxxx 似乎是一个随机目录名称。(在此之下,如果你四处游荡,你应该找到你的特定应用程序的商店......)
回答by Mangesh
I'm using Windows 8.1. On my PC its in C:\Users\mangesh\AppData\LocalLow\Microsoft\Silverlight\<followed by some random folder names>
我正在使用 Windows 8.1。在我的电脑上C:\Users\mangesh\AppData\LocalLow\Microsoft\Silverlight\<followed by some random folder names>
In 'Silverlight' folder there are many random folders. You should find your files in one of these folders.
在“Silverlight”文件夹中有许多随机文件夹。您应该在这些文件夹之一中找到您的文件。
回答by mybrave
Location differs per IsolationStoragescope
位置因IsolationStorage范围而异
Local user [LocalApplicationData]\IsolatedStorage
Roaming user [ApplicationData]\IsolatedStorage
Machine [CommonApplicationData]\IsolatedStorage
The folders can be retrieved by Environment.GetFolderPathmethod.
可以通过Environment.GetFolderPath方法检索文件夹。
Windows 2016 has it like this
Windows 2016 是这样的
Local user C:\Users\<user>\AppData\Local\IsolatedStorage
Roaming user C:\Users\<user>\AppData\Roaming\IsolatedStorage
Machine C:\ProgramData\IsolatedStorage
More details can be found here.
可以在此处找到更多详细信息。

