VSTO Outlook 插件电子邮件发件人姓名
VSTO Outlook Addin Email Sender Name
我有一个 VSTO Outlook 2013 插件,它在已读邮件 window 打开时从 CurrentItem 读取属性。当我收到 属性 发件人时,我总是收到 system.__comobject 为什么它一直返回这个?
与发送 MailItem 的帐户用户相对应的 Sender property returns an AddressEntry 对象。
//if it is a regular mail or a Meeting mail
var senderName = mail.Sendername;
//if it is a task mail
var senderName = mail.Owner;
希望能帮到你!
Outlook.Application oApp = new Outlook.Application();
Outlook.NameSpace oApp1 = oApp.GetNamespace("MAPI");
oApp1.CurrentUser.Name;
我有一个 VSTO Outlook 2013 插件,它在已读邮件 window 打开时从 CurrentItem 读取属性。当我收到 属性 发件人时,我总是收到 system.__comobject 为什么它一直返回这个?
与发送 MailItem 的帐户用户相对应的 Sender property returns an AddressEntry 对象。
//if it is a regular mail or a Meeting mail
var senderName = mail.Sendername;
//if it is a task mail
var senderName = mail.Owner;
希望能帮到你!
Outlook.Application oApp = new Outlook.Application(); Outlook.NameSpace oApp1 = oApp.GetNamespace("MAPI");
oApp1.CurrentUser.Name;