[UWP]漫游 - 分享收藏? [英] [UWP] Roaming - sharing favorites ?

查看:66
本文介绍了[UWP]漫游 - 分享收藏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

我有我想要分享的最爱。它是一个包含字典的类< int,string> ;;

I have favorites which I want to share. It is a class containing a dictionary<int, string>;

我该怎么做?我目前正在使用序列化将其保存到XML文件。我可以将它设置为漫游文件夹吗?

试过但不同步。

什么时候同步?

How can I do that? I am currently saving it using Serialization to an XML-file. Can I just set that to the roaming-folder?
Tried that but it does not sync.
When does it sync?

谢谢

James

推荐答案

请参阅https: //docs.microsoft.com/en-us/windows/uwp/app-settings/store-and-retrieve-app-data#roaming-data

See https://docs.microsoft.com/en-us/windows/uwp/app-settings/store-and-retrieve-app-data#roaming-data

您可以将其保存到RoamingFolder,但不保证时间安排。如果您需要即时访问,那么这不是正确的方法,但如果一切都在线,通常不应该花费几分钟。

You can just save it to the RoamingFolder, but there is no guarantee as to timing. If you need instant access then this isn't the right method, but it generally shouldn't take more than a few minutes if everything is online.

同时确保两台机器都是可信的并启用漫游。

Also make sure that both machines are trusted and have roaming enabled.


这篇关于[UWP]漫游 - 分享收藏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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