我应该为Outlook插件使用什么存储空间? [英] What storage should I use for a outlook plugin?
问题描述
如果要使用VSTO部署Outlook插件,应该使用什么存储系统?
What storage system should I use , If i'm going to deploy a outlook plugin with VSTO ?
是否可以使用Outlook的电子邮件地址?
Is it possible to use outlook's , which is for email ?
更新
我考虑过SQL Express,但我认为我应该将Outlook与Outlook Express所用的东西相同,这样可以省去麻烦
I thought about SQL Express , but I think I should use the same thing with what outlook uses , that would save troubles
推荐答案
有许多可供您考虑的选项,下面列出了我过去使用过的所有选项.
There are numerous options for you to consider, below I've listed all the ones I've seen used in the past.
-
对于由Outlook管理的存储,您可以使用
StorageItem
,它是给定文件夹(收件箱等)中的隐藏项目.使用StorageItem
,您可以添加自定义用户属性和文件附件.
For Outlook-managed storage you could look into using
StorageItem
which is a hidden item inside a given folder (Inbox, etc.). Using theStorageItem
you can add custom user properties and file attachments.
您还可以使用 PR_ATTR_HIDDEN
标志.添加任何邮件项目或日记项目将仅对您的加载项可见,因为您可以通过API(而不是通过Outlook界面)访问隐藏的文件夹.
You can also create new Folder and mark it as hidden using the PR_ATTR_HIDDEN
flag. Adding any mail items or journal items would only be visible to your add-in since you can access hidden folders via the API - but not via Outlook interface.
我还看到用户将信息存储在序列化为XML的Outlook日记项目中(由
I've also seen users store information inside Outlook journal items serialized as XML (as is done by jello-dashboard).
您可以通过AddStore
创建自定义商店,以构建本地PST.
You could create a custom store via AddStore
to construct a local PST.
或者,您可以将数据存储在Outlook系统外部,以供您的加载项使用.外部存储可以是本地环境路径,本地/远程数据库或Web服务调用.
Alternately, you could store data external to the Outlook system for consumption by your addin. External stores could be local Environment paths, local/remote databases, or web service calls.
这篇关于我应该为Outlook插件使用什么存储空间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!