开发者

How to cancel an Outlook.MailItem changes?

I am doing changes on an Outlook.MailItem but after closing the last explorer a message box asks to save the item (twice!).

I want to cancel the "dirty" state of the item without saving it so 开发者_C百科no message box will be displayed.

Is it possible to accomplish it? The only solution that I have is persisting the previous state and saving it again.


You need to release COM objects, created in your code. See When to release COM objects in Office add-ins developed in .NET.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜