EWS除去必需的与会者时,发出邀请函给大家 [英] EWS sends invitations to everyone when removing a required attendee

查看:287
本文介绍了EWS除去必需的与会者时,发出邀请函给大家的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下代码:

(会议beeing交流预约)

(Meeting beeing the exchange appointment)

For Each Recipient As String In emailAdresses 
    For i As Integer = 0 To Meeting.RequiredAttendees.Count - 1
        If (Meeting.RequiredAttendees(i).Address).ToUpper() = Recipient.ToUpper() Then
            Meeting.RequiredAttendees.RemoveAt(i)
            Exit For
        End If
    Next
Next

Meeting.Update(ConflictResolutionMode.AutoResolve, SendInvitationsOrCancellationsMode.SendOnlyToChanged)

现在,你可以看到我使用SendInvitationsOrCancellationsMode。 SendOnlyToChanged。

Now as you can see i'm using SendInvitationsOrCancellationsMode.SendOnlyToChanged.

但是,即使我使用此模式下,仍然是发送预约所有与会者的。

But even though that i'm using that mode it is still sending the appointment to all of the attendees.

我看了 MSDN 和代码是完全一样的。和MSDN告诉我下面应该发生:

I've looked at msdn and the code is exactly the same. And msdn tells me the following should happen:

保存会议并发送会议取消消息,已删除的与会者或与会者

Save the meeting and send a meeting cancellation message to the attendee or attendees that you removed

所以基本上MSDN最高审计机关它的作品,但事实并非如此。有一个变通此问题或其他任何人遇到同样的问题?

So basically msdn sais it is works but it does not. Is there a work around for this issue or is anyone else experiencing the same problem?

我们的Exchange服务器2007 SP1版本。

our exchange server is a 2007 SP1 version.

答案可以在C#或VB.NET中,我将它翻译成我们所需要的语言。

The answer can be in C# or VB.NET, I'll translate it to the language we need.

PS。添加成员和使用这种模式会导致邀请发送到只新添加的成员。但正如我以前说过删除不具有此相同的行为。

PS. Adding members and using this mode causes the invite to send to the newly added member only. But as I said before deleting does not have this same behaviour.

推荐答案

这样做的:

Meeting.Update(ConflictResolutionMode.NeverOverwrite, SendInvitationsOrCancellationsMode.SendOnlyToChanged)

而不是:

Meeting.Update(ConflictResolutionMode.AutoResolve, SendInvitationsOrCancellationsMode.SendOnlyToChanged)

解决我的问题,我不知道为什么,什么它具有虽然麻烦了。

Solved my problem, I do not know why and what it was having trouble with though.

这篇关于EWS除去必需的与会者时,发出邀请函给大家的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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