关于会话存储 [英] Regarding Session Storage

查看:62
本文介绍了关于会话存储的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

   我有一个outlook插件,它是由功能区控件上的按钮激活的Windows窗体。当表单关闭时,我仍然希望为outlook会话保留一个值集,只要显示outlook UI即可。我在哪里可以在Outlook中存储
会话数据?功能区是控制位置还是有一些键/值字典?

    I have an outlook addin that is a Windows form activated by a button on the ribbon control. When the form is closed, I still want to persist a value set for the outlook session meaning as long as the outlook UI is displayed. Where can I store session data in outlook? Is the ribbon control the place or is there some key/value dictionary around?

推荐答案

标准解决方案是将数据存储在隐藏(关联)邮件在Outlook的默认文件夹(例如收件箱)中。 Outlook通过可通过MAPIFolder.GetStorage方法访问的StorageItem对象公开此类消息。请参阅

https://msdn.microsoft.com/en-us/library/microsoft.office.interop.outlook.mapifolder.getstorage(v=office.14).aspx

您可以在 OutlookSpy 中查看原始邮件 - 转到收件箱文件夹,单击IMAPIFolder,转到"关联内容" ;标签,

You can see the raw messages in OutlookSpy - go to the Inbox folder, click IMAPIFolder, go to the "Associated Contents" tab,


这篇关于关于会话存储的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆