简体   繁体   English

Outlook加载项-Application_ItemSend触发了两次

[英]Outlook Add-in - Application_ItemSend fired twice

I'm writing an addin for Outlook that check if the appointment has been set between 13:30 to 14:30 and show the user a warning that he sent a meeting request between 13:30 to 14:00. 我正在为Outlook编写插件,以检查约会是否已在13:30到14:30之间设置,并向用户显示警告,他在13:30到14:00之间发送了会议请求。

When someone sets a meeting in this time period it shows the message, but if for example he edits the meeting and removes one of the attendees, outlook asks if he wants to send the update only to the added or deleted attendees or if he wants to send the update to all of the attendees. 当某人在此时间段内召开会议时,会显示该消息,但例如,如果他编辑会议并删除其中一位与会者,Outlook将询问他是否只想将更新发送给添加或删除的与会者,还是要将更新发送给所有与会者。 Now, if he chooses to send the meeting to all of the attendees then the Application_ItemSend fired twice and he gets the warning message twice. 现在,如果他选择将会议发送给所有与会者,则Application_ItemSend触发两次,并且两次将收到警告消息。

I tried to use the item.ForceUpdateToAllAttendees = true but it didn't help. 我尝试使用item.ForceUpdateToAllAttendees = true但没有帮助。

What is happening here? 这是怎么回事 And how can I resolve this issue? 我该如何解决这个问题?

您是否不希望Outlook将会议取消发送给已删除的与会者,并将更新发送给扩孔的与会者?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM