gpt4 book ai didi

c# - EWS - 如何知道联系人字段扩展属性 ID?

转载 作者:太空宇宙 更新时间:2023-11-03 14:02:38 25 4
gpt4 key购买 nike

我必须使用 EWS 向某些 Outlook 联系人字段添加值。我已经设法通过使用“用户字段 1”来做到这一点 this article.问题是我需要在其他字段中插入值(例如“杂项字段”中的“帐户”)并且我需要知道这些属性的 ID。这是我用来创建属性的代码,我需要设置第二个参数:

Guid myGuid = new Guid("{00062004-0000-0000-C000-000000000046}");
ExtendedPropertyDefinition myDef = new ExtendedPropertyDefinition(myGuid, 0x804F, MapiPropertyType.String);

最佳答案

你很接近,PropertyId 值在 same MSDN article you referenced 上.

AccountPropertyId 0x3A00

MFCMAPI在查找属性名称或 ID 时也是您的 friend 。

关于c# - EWS - 如何知道联系人字段扩展属性 ID?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10322566/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com