C# 如何使用c在outlook中读写自定义列#
我需要读/写我在Outlook中使用C#创建的自定义列。有人知道怎么做吗 我曾尝试使用EWS,但我一事无成 编辑:C# 如何使用c在outlook中读写自定义列#,c#,.net,outlook,C#,.net,Outlook,我需要读/写我在Outlook中使用C#创建的自定义列。有人知道怎么做吗 我曾尝试使用EWS,但我一事无成 编辑: 上述情况根本没有帮助。ExtendedProperty计数仍然为0。老实说,这是我最好的猜测,但我也必须去C#和EWS。到目前为止你试过什么吗?是的,请看上面。 ExtendedPropertyDefinition myExtDef= new ExtendedPropertyDefinition(DefaultExtendedPropertySet.PublicString
上述情况根本没有帮助。ExtendedProperty计数仍然为0。老实说,这是我最好的猜测,但我也必须去C#和EWS。到目前为止你试过什么吗?是的,请看上面。
ExtendedPropertyDefinition myExtDef=
new ExtendedPropertyDefinition(DefaultExtendedPropertySet.PublicStrings,
"Engineer",
MapiPropertyType.String);
PropertySet propertySet =
new PropertySet(BasePropertySet.FirstClassProperties, myExtDef);
foreach (Item item in findResults)
{
EmailMessage message =
EmailMessage.Bind(service, item.Id, new PropertySet(propertySet));}