简体   繁体   English

如何获取Outlook.MeetingItem的发件人ExchangeUser和邮件地址

[英]How to get sender ExchangeUser and mailaddress for Outlook.MeetingItem

When users accept/deny a calendar meeting request, and the organiser opens the confirmation/rejection message, the object type of the Inspector.CurrentItem is Outlook.MeetingItem. 当用户接受/拒绝日历会议请求并且组织者打开确认/拒绝消息时,Inspector.CurrentItem的对象类型为Outlook.MeetingItem。

MeetingItem does not seem to expose the Sender property. MeetingItem似乎没有公开Sender属性。 How can I get the Sender.GetExchangeUser() equivalent of a MeetingItem? 如何获得与MeetingItem等效的Sender.GetExchangeUser()?

Like MailItem, the MeetingItem exposes a SenderEmailType property, which can hold the value "EX", meaning the SenderEmailAddress does not contain the actual email address. 与MailItem一样,MeetingItem公开一个SenderEmailType属性,该属性可以包含值“ EX”,这意味着SenderEmailAddress不包含实际的电子邮件地址。 Microsoft has nicely documented how to get the sender of a an Outlook.MailItem by usage of the Sender property. Microsoft已很好地记录了如何通过使用Sender属性获取Outlook.MailItem的发件人。

您可以使用MeetingItem.PropertyAccessor.GetProperty检索PR_SENDER_ENTRYID (DASL名称为http://schemas.microsoft.com/mapi/proptag/0x0C190102 )或PR_SENT_REPRESENTING_ENTRYID (DASL名称为http://schemas.microsoft.com/mapi/proptag/0x00410102 )。 ,使用PropertyAccessor.BinaryToString将其转换为十六进制字符串,并使用其调用Namespace.GetAddressEntryFromID

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

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