UWP 的隔离存储 [英] Isolated Storage for UWP

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

问题描述

请问如何存储临时数据和从Isolated storage中读取临时数据以及对Universal Windows Platform (UWP) App Development的Isolated storage支持?谢谢.

May I ask about how to store the temporary data and read temporary data from Isolated storage and Isolated storage support for Universal Windows Platform (UWP) App Development? Thank You.

推荐答案

WP silverlight 中使用的隔离存储.如果你想要一个临时文件夹来存储你可以使用 ApplicationData.Current.TemporaryFolder如果你想要一个文件夹来长期存储应用程序数据并且你需要它们,你可以使用 ApplicationData.Current.LocalFolder如果您希望您的应用程序在设备之间进行同步,这意味着您希望在不同设备上拥有相同的数据,您必须使用 RoamingFolder 而不是 LocalFolder .RoamingFolder 在设备之间共享应用程序数据,帮助您制作更通用的应用程序.

Isolated storage used in WP silverlight . If you want a temporary folder to store you can use ApplicationData.Current.TemporaryFolder If you want a Folder to store application data for a long time and you need them you can use ApplicationData.Current.LocalFolder If you want your app to have a sync between devices , it means you want to have same data on different devices you have to use RoamingFolder instead of LocalFolder . RoamingFolder share application data between devices and help you to make a more universal app .

这篇关于UWP 的隔离存储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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