如何清除PidLidTaskStartDate和PidLidTaskDueDate以获取消息标志 [英] How clearing the PidLidTaskStartDate and PidLidTaskDueDate for the flag of message
问题描述
我正在使用EWS API访问交换机,现在,我已经为电子邮件工作制作了标记。
Im using EWS API accessing the exchange, and now, i already make flag follow up for email works.
现在唯一的问题是设置PidLidTaskStartDate和PidLidTaskDueDate,然后我改为"没有约会"或者"Complate",如何清除它们的日期。我试过msg.RemoveExtendedProperty();但是很有效。
The only problem now is if set a PidLidTaskStartDate and PidLidTaskDueDate, then i change to "No Date" or "Complate", how can i clearing the date for them. I tried msg.RemoveExtendedProperty(); but doent work.
如http://msdn.microsoft.com/en-us/library/ee202118%28v=EXCHG.80%29.aspx,似乎要设置它as"0x5AE980E0"
as http://msdn.microsoft.com/en-us/library/ee202118%28v=EXCHG.80%29.aspx, it seems have to set it as "0x5AE980E0"
但是如何设置它,因为PidLidTaskStartDate和PidLidTaskDueDate是MapiPropertyType.SystemTime类型。
But how can i set it, because the PidLidTaskStartDate and PidLidTaskDueDate are MapiPropertyType.SystemTime type.
有什么建议吗?
推荐答案
一般情况下,每当你使用"msg.RemoveExtendedProperty(extendedpropertydefinition)",然后确保需要更新它"msg.update(ConflictResolutionMode.AlwaysOverwrite)"。你试过这个吗?
In general, whenever you use "msg.RemoveExtendedProperty(extendedpropertydefinition)", then make sure you need to update it "msg.update(ConflictResolutionMode.AlwaysOverwrite)". Have you tried this?
这篇关于如何清除PidLidTaskStartDate和PidLidTaskDueDate以获取消息标志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!