我跟踪这篇博客文章http://www.slipstick.com/developer/send-email-outlook-reminders-fires/,因为我对Outlook 2010提醒事件做出了反应。但是,我一直被绊倒,因为传递给我的事件处理程序的参数是一个字符串,它似乎是提醒项的"Subject“属性。在我的"ThisOutlookSession“中,我有下面的简单代码:
Private Sub Application_Reminder(ByVal Item As Object)
post_frm Item
End Sub所有文档都告诉我,项目应该是一个AppointmentItem、MailItem、ContactItem或TaskItem,但是我肯定会得到一个字符串。
知道为什么吗?
发布于 2014-08-30 04:17:19
“Subject属性是Outlook项的默认属性。”
http://msdn.microsoft.com/en-us/library/office/ff865652%28v=office.15%29.aspx
post_frm中的代码处理的是项的默认属性,而不是项。
https://stackoverflow.com/questions/22967200
复制相似问题