VSTO的Outlook插件需要保存设置,最好的方法? [英] VSTO Outlook addin need to save settings, best way?

查看:256
本文介绍了VSTO的Outlook插件需要保存设置,最好的方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在写VSTO Outlook加载中,我需要节省一些设置插件从Web服务获取。什么是做到这一点的最好办法。注册?是否VSTO插件已经全面进入做这样的事情?也许一个文件,其中包含的设置?

I'm writing a VSTO Outlook add in and i need to save some settings the addin gets from a web service. What is the best way to do this. Registry? does the VSTO addin have full access to do something like that? Maybe a file containing the settings?

先谢谢了。

推荐答案

您可以使用设置文件。

该文件的优势,除了有一个集中的强​​类型库,是可以设置的设置是应用程序范围的或用户范围。应用程序设置将提供给计算机的所有用户。用户设置将个性为每个用户。 (我相信框架将实际存储在操作系统中的某处单独的文件这些设置。我不知道,但它并不重要。设置文件的妙处在于,它需要照顾的实际存储和检索适合你。)

The advantage of this file, besides having a centralized and strongly-typed repository, is that you can set the settings to be either application-scoped or user-scoped. Application settings will be available to all users of the computer. User settings will be individualized for each user. (I believe the framework will actually store these settings in separate files somewhere in the OS. I'm not sure, but it doesn't matter. The beauty of the Settings file is that it takes care of the actual storage and retrieval for you.)

这篇关于VSTO的Outlook插件需要保存设置,最好的方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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