简体   繁体   English

保存后不更新Outlook 2010 DocumentItem

[英]Outlook 2010 DocumentItem is not updated aftersave

I have created on DocumentItem in outlook 2010. Let's start with an example so, it gives brief information. 我已经在Outlook 2010中的DocumentItem上创建了。让我们从一个示例开始,它提供了简要的信息。

objDocItem = objFolder.Items.Add("IPM.Document"); 
objDocItem.Subject = TestFile.txt;
objDocItem.Save();

Now, I want to update the DocumentItem name. 现在,我想更新DocumentItem名称。

objDocItem.Subject = ABCD.txt;
objDocItem.Save();

But My Outlook Item is not updated in outlook 2010. Is there any help from your side ? 但是“ Outlook 2010”中未更新“我的Outlook项目”。您方面有帮助吗? Can I refresh the DocumentItem's subject? 我可以刷新DocumentItem的主题吗?

Did you have a chance to check the Subject property right after setting it and calling the Save method? 设置并调用Save方法后,您是否有机会立即检查Subject属性?

The fact is that OOM may not reflect changes immediately in the UI. 事实是,OOM​​可能不会立即反映UI中的更改。 You need to change the view for a short period of time (for example, switch between folders) or select another item programmatically in the view. 您需要在短时间内更改视图(例如,在文件夹之间切换)或以编程方式在视图中选择另一个项目。

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

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