如何在Outlook预约项目中查找所需与会者的电子邮件ID?

时间:2015-10-05 11:15:53

标签: c# asp.net outlook-addin

这是我的代码:

Meeting Meeting = new Meeting();
Outlook.AppointmentItem oulookMeeting;
Meeting.Email_Address = (oulookMeeting.RequiredAttendees == string.Empty ?   string.Empty : oulookMeeting.RequiredAttendees);

在此我只获得RequiredAttendees的名字。有可能以某种方式获得他们的电子邮件ID吗? 请帮忙。

1 个答案:

答案 0 :(得分:2)

循环访问AppointmentItem.Recipients集合,并使用Recipient.Type属性查找收件人== OlMailRecipientType.olTo