问题描述
我正在尝试将EWSConsoleNotify用于修改后的事件.我按如下方式更改订阅
PushSubscription ps = _service.SubscribeToPushNotificationsOnAllFolders(new Uri("http://192.168.0.22:5050"),
5//每隔5分钟,Exchange将向我们发送一条状态消息
,null,EventType.Modified);
并且我注释掉了SendNotificationResultType方法中对"NewMailEvent"的限制.
但是,该代码引发了一个奇怪的错误,即它无法将文件夹ID转换为项目ID.
我也试图在一组公用文件夹上运行它.您知道如何实现吗?
I''m trying to use EWSConsoleNotify for Modified events. I change the subscription as follows
PushSubscription ps = _service.SubscribeToPushNotificationsOnAllFolders(new Uri("http://192.168.0.22:5050"),
5 // Every 5 minutes Exchange will send us a status message
, null, EventType.Modified);
and I comment out the restriction to "NewMailEvent" in SendNotificationResultType method.
However, the code throws a strange error that it cannot convert a folder id to an item id.
I''m also trying to run this on a set of public folders. Would you know how to achieve that?
推荐答案
这篇关于如何更改事件类型和文件夹位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!