如何更改事件类型和文件夹位置 [英] How do I change the type of events and the folder location

查看:89
本文介绍了如何更改事件类型和文件夹位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将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?

推荐答案

不要将其发布在快速解答"下-如果您从文章中获得了代码,则会有一个新邮件底部的邮件"按钮,这将导致向作者发送电子邮件.然后会通知他们您希望与他们交谈.
将其发布到此处依赖于他们的下落"并意识到它是针对他们的.
Don''t post this under Quick Answers - if you got the code from an article, then there is a "new message" button at the bottom of that article, which causes an email to be sent to the author. They are then alerted that you wish to speak to them.
Posting this here relies on them "dropping by" and realising it is for them.


这篇关于如何更改事件类型和文件夹位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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