如何在 Microsoft Outlook 2010 插件中保存状态?

发布于 2024-11-17 10:14:12 字数 196 浏览 5 评论 0原文

我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

单调的奢华 2024-11-24 10:14:12

将其存储在 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文