简体   繁体   English

我可以在哪里存储 Outlook 2013 C# 中的值?

[英]Where can I store value in Outlook 2013 C#?

I am developing AddIn for Outlook 2013.我正在为 Outlook 2013 开发插件。

For that, i have specific requirement and I have to get data from Sharepoint List and display in Pane.为此,我有特定的要求,我必须从 Sharepoint 列表中获取数据并在窗格中显示。

I have created addin and it is working fine.我已经创建了插件并且它工作正常。

Right now , I have written Sharepoint URL, Username, Password, Domain directly.现在,我直接写了Sharepoint URL、用户名、密码、域。

Now my scenario, I have to give user to configure Sharepoint URL, Username, Password, Domain.现在我的场景,我必须让用户配置 Sharepoint URL、用户名、密码、域。

So where can I store this information.那么我可以在哪里存储这些信息。 So when I have to get data from SP list, then I need to use the details which user has configured.因此,当我必须从 SP 列表中获取数据时,我需要使用用户配置的详细信息。

Outlook usually stores data like that in a hidden (associated) message in one of the default folders. Outlook通常将这样的数据存储在默认文件夹之一的隐藏(关联)消息中。 You can see existing data in OutlookSpy - click IMAPIFolder button, go to the "Associated Contents" tab. 您可以在OutlookSpy中查看现有数据-单击IMAPIFolder按钮,转到“关联内容”选项卡。

Outlook Object Model lets you access that data through MAPIFolder.GetStorage - see Outlook对象模型使您可以通过MAPIFolder.GetStorage访问该数据-请参阅

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

Thanks for your reply. 感谢您的回复。

I got it working using below reference 我使用以下参考进行工作

Store Outlook Data 储存Outlook资料

Thanks 谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM