windows-8 - 为什么我无法访问 System.IO 命名空间中的isolatedStorage?

标签 windows-8 microsoft-metro windows-runtime isolatedstorage

我在 Windows 8 Release Preview 上运行 VisualStudio 2012 RC。

我使用我的“live”又名“outlook”ID 登录 Win8。

我创建了一个新的 Windows Metro 风格项目。当我尝试使用 System.IO.IsolatedStorage 时,Visual Studio 告诉我缺少引用。但是当我转到引用文献时,没有任何可添加的内容,它显示默认添加的所有引用文献。

现在据我所知,IsolatedStorage 是 mscorlib.dll 的一部分,因此它不太可能“丢失”。

我错过了什么?

感谢和问候, 苏米特。

最佳答案

IsolatedStorage 不是 WinRT .Net 的一部分。您必须使用 Windows.Storage。

http://msdn.microsoft.com/en-us/library/windows/apps/br230302%28v=vs.110%29.aspx#storage

关于windows-8 - 为什么我无法访问 System.IO 命名空间中的isolatedStorage?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11909541/

相关文章:

c# - TextBox 上的事件 OnClick? (C# Win8)

html - 在 html/css 中制作简单的 metro 风格菜单

c# - 在WinRT MVVM中无法执行按钮单击和组合框选择更改

c# - ProtectedData.Protect 与 DataProtectionProvider Windows Phone 8 Silverlight 到 Windows Phone 8.1 通用应用程序迁移

windows-runtime - 在 WinRT 中更改 UI 文化

Apache 不会在新的 Xampp 安装上启动 : The pipe has been ended. 子级:无法从父级读取套接字数据

windows-8 - 是否可以将 Microsoft Kinect SDK 与 Metro Style 应用程序一起使用?

要使用的 HTMl5/CSS3 框架将适用于 Windows 8 手机和 Windows 8 平板电脑以及 iPad 和网络浏览器?

c# - Metro 应用程序中的键盘快捷键

windows - 在 silverlight 和 WinRT 应用程序之间共享代码