在进行同步之前有没有办法查看待处理状态? [英] Is there any way to see the pending status prior to doing a sync?

查看:89
本文介绍了在进行同步之前有没有办法查看待处理状态?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道如何获取  SyncOperationStatistics  来自
a同步操作,但我想告诉我的用户他们何时离线他们有多少挂起的更改(或者他们是否有相应的挂起更改)。有没有办法查询提供者或管理员以获取待处理更改的统计信息?

I see how to get SyncOperationStatistics from a sync operation, but I'd like to tell my users when they're off-line how many pending changes they have (or if they have pending changes at all for that matter). Is there any way to query the provider or orchistrator to get statistics for pending changes?

提前致谢,

Mike

推荐答案

执行同步并接受ChangesSelected事件,事件args将包含包含更改数据集的SyncContext。如果您不想同步,只需在事件中引发异常以取消同步。
do a sync and suscribe to the ChangesSelected event, the event args will have the SyncContext which contains the change dataset. If you dont want to sync, simply raise an exception in the event to cancel the sync.


这篇关于在进行同步之前有没有办法查看待处理状态?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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