如何在 Microsoft Outlook 2010 插件中保存状态?
我的 Outlook 2010 加载项中有一个功能区编辑框,我想保存状态,用户将输入一些文本,然后单击复选框来存储该文本,这样他们就不必每次都重新输入打开 Outlook。
更具体地说,这种东西会存储在应用程序数据中吗? ini 文件?也许是注册表? AC# 代码示例将不胜感激。
我的问题更多的是关于最佳实践,而不是实施,尽管实施细节会很有用。
I have a Ribbon Edit Box within my outlook 2010 add-in, and I would like to save state, the user will input some text, and click a check box to store that text so that they will not have to reenter it every time they open Outlook.
More specifically would this kind of thing be stored in application data? ini files? maybe the registry? A C# code example would be greatly appreciated.
My question is more about best practices then implementation, although implementation details would be useful.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
将其存储在 LocalApplicationData 路径中。使用 System.Envrionment.SpecialFolders 获取路径。只需在该特殊文件夹下为您的加载项数据创建一个文件夹,然后创建一个文件来存储您需要的任何内容。
Store it in LocalApplicationData path. Use System.Envrionment.SpecialFolders to get the path. Just create a folder under that special folder for your add-in data, and create a file to store whatever you need there.