内存映射一个独立的存储文件 [英] Memory map an Isolated storage file

查看:82
本文介绍了内存映射一个独立的存储文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在.NET4 C#中将IsolatedStorageFile映射为MemoryMappedFile?
在此先谢谢您.

How to map IsolatedStorageFile as MemoryMappedFile in .NET4 C#?
Thanks in advance.

推荐答案

您可以通过将其他文件映射到内存的相同方法来进行操作.您所要做的就是获取隔离存储文件夹的SpecialFolder名称,然后开始比赛了.

MSDN-Environment.SpecialFolder枚举 [
You do it the same way map any other file to memory. All you have to do is get the SpecialFolder name of the isolated storage folder, and you''re off to the races.

MSDN - Environment.SpecialFolder Enumeration[^]


有用Abhisek Sur [ ^ ].

请参见MSDN文档中的IsolatedStorageStream [ ^ ],其中包含用于读写的几种语言的代码示例.
Useful CodeProject article on Isolated Storage, "Use of Isolated Storage (A Simple Demo)," by Abhisek Sur[^].

See MSDN docs for IsolatedStorageStream[^] which include code examples in several languages for reading and writing.


这篇关于内存映射一个独立的存储文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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