我在Exchange.WebServices.Data.Contact中的哪个位置可以找到与Outlook.ContactItem.SelectedMailingAddress相关的属性?Exchange.WebServices.Data.Contact:邮寄地址在哪里?
Outlook已Outlook.ContactItem.SelectedMailingAddress属性,它持有Microsoft.Office.Interop.Outlook.OlMailingAddress枚举:
_currentContact.SelectedMailingAddress = Microsoft.Office.Interop.Outlook.OlMailingAddress.olBusiness;
Outlook还填充全套地址属性:
_currentContact.MailingAddress = _currentContact.BusinessAddress;
_currentContact.MailingAddressCity = _currentContact.BusinessAddressCity;
_currentContact.MailingAddressCountry = _currentContact.BusinessAddressCountry;
_currentContact.MailingAddressPostalCode = _currentContact.BusinessAddressPostalCode;
_currentContact.MailingAddressState = _currentContact.BusinessAddressState;
_currentContact.MailingAddressStreet = _currentContact.BusinessAddressStreet;
但我在EWS中找不到邮寄地址。 Exchange.WebServices.Data.PhysicalAddressKey枚举只包含Business,Home和Other。
我在这里拉我的头发!任何帮助或方向都会得到真正的赞赏。
由于
你有没有检查[ProxyAdress(HTTPS进行设置(或获取值):// MSDN .microsoft.com/en-us/library/aa563519(v = exchg.80).aspx)如此处所述? – BastianW
感谢您花时间看看这位巴斯蒂安! ProxyAddress可能会影响EWS联系人对象的单个属性吗?我可以通过EWS检索和更新联系人,而不会造成任何问题。我的问题是设置哪个地址(业务,家庭,其他)是邮寄地址。推测这是联系对象的单个属性(也许是扩展属性?)。 –