我正在编写一个 Outlook 互操作应用程序,我需要从交换用户对象中获取国家/地区条目。它不能通过公共属性获得,有什么方法可以得到它吗?
ExchangeUser entry = OutlookManager.Instance.GetAddressBookEntry(mail.SenderName, mail.SenderAddress);
if (entry != null)
{
var licensee = new Licensee();
licensee.City = entry.City;
licensee.Company = entry.CompanyName;
//todo get country
licensee.Country = ???
licensee.Department = entry.Department;
licensee.FirstName = entry.FirstName;
licensee.LastName = entry.LastName;
licensee.OutlookDisplayName = entry.Name;
}