【发布时间】:2017-10-12 02:30:46
【问题描述】:
我需要我的插件来检测定期会议何时被删除。我的问题是如果我只删除集合中的一个事件或删除整个集合,则 BeforeDelete 事件会以相同的方式触发。我需要知道用户何时删除整个集合,而不仅仅是其中的一次。 Item 中是否有引用此变量的变量?
public void MailItem_BeforeDelete(object Item, ref bool Cancel) {
Outlook.AppointmentItem MailItem = Item as Outlook.AppointmentItem;
//Somewhere in this little guy [MailItem] should be something telling me if the
//item that is being deleted is a single occurance or is the entire set that is being deleted?
//MailItem.IsRecurring is true in both instances so thats doesnt work.
}
【问题讨论】: