简体   繁体   English

Outlook AppointmentItem LastModificationTime不更新

[英]outlook AppointmentItem LastModificationTime doesn't update

I'm currently working with Outlook 2013/2016. 我目前正在使用Outlook 2013/2016。 My Outlook account is linked to a Zimbra server (I try it with an ActiveSync server but with the same result). 我的Outlook帐户已链接到Zimbra服务器(我在ActiveSync服务器上尝试过,但结果相同)。

Here are my steps : 这是我的步骤:

  1. When I create an appointment, the LastModificationTime property take the current dateTime value => OK 创建约会时,LastModificationTime属性采用当前的dateTime值=>确定

  2. On the Zimbra server the new appointment appear => OK 在Zimbra服务器上,出现新约会=> OK

  3. When I move my appointment in Outlook, the LastModificationTime property take the event dateTime value => OK 当我在Outlook中移动约会时,LastModificationTime属性采用事件dateTime值=>确定

  4. On the Zimbra server the appointment have been updated with the new date => OK 在Zimbra服务器上,约会已更新为新日期=>确定

  5. When I move my appointment in Zimbra, the appointment move on Outlook => Ok. 当我在Zimbra中移动约会时,约会在Outlook上移动=>确定。 But when I'm reading the LastModificationTime property, it's doesn't change with the new value (last event or last synchronisation between Outlook and Zimbra). 但是,当我读取LastModificationTime属性时,它不会随着新值(Outlook和Zimbra之间的最后一个事件或最后一次同步)而改变。

For my application (Outlook AddIn) I use this property, so I need it to be updated. 对于我的应用程序(Outlook AddIn),我使用此属性,因此需要对其进行更新。 I try to use the update/create event on appointment to change the LastModificationTime but it's not good for the moment. 我尝试在约会时使用update / create事件来更改LastModificationTime,但目前还不好。

Do you have any idea or suggestion ? 您有什么想法或建议吗? (use other property perhaps). (也许使用其他属性)。

Thks 谢谢

I confirm you, the value doesn't change : 我确认您,该值不会改变:

https://msdn.microsoft.com/en-us/library/gg156895%28v=winembedded.70%29.aspx?f=255&MSPPError=-2147217396


Outlook.PropertyAccessor propAcc = itemOutlook.PropertyAccessor;
DateTime outStrDT = propAcc.GetProperty(@"http://schemas.microsoft.com/mapi/proptag/0x30080040");

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM