如何获取Outlook 2003帐户列表使用Outlook 2003对象模型 [英] How to get Outlook 2003 accounts list using Outlook 2003 object model

查看:233
本文介绍了如何获取Outlook 2003帐户列表使用Outlook 2003对象模型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用标准COM从Outlook 2003中获取所有现有帐户的列表?
这意味着我不能使用兑换库,但只有默认Outlook 2003对象模型
在Outlook 2007/2010上获取帐户很容易:

Is it possible to get list of all existing accounts from Outlook 2003 using only standard COM? It means I can't use Redemption library, but only default Outlook 2003 object model . It's much easy to get accounts at Outlook 2007/2010:

dynamic outlook = AutomationFactory.GetObject("Outlook.Application");
var accounts = outlook.Session.Accounts;

但是没有Outlook 2003的Accounts属性。默认情况下,我只能访问默认帐户using CurrentUser属性。所以也许有另一种方法来获得所有的帐户(只使用Outlook 2003对象模型)?

But there is no "Accounts" property for Outlook 2003. By default I can access only default account using "CurrentUser" property. So maybe is there some another way to obtain all accounts (using ONLY Outlook 2003 object model)?

推荐答案

a href =http://stackoverflow.com/questions/3118211/how-can-i-get-outlook-2003-data-in-silverlight-4-application/3189975#3189975>找到答案。我不使用对象模型,但我做的完全一样的赎回(读注册表)。所以这是可以接受的答案,对我来说。

I've finally found answer. I'm not using object model, but I do exactly same as Redemption (read registry). So it's acceptable answer as for me.

这篇关于如何获取Outlook 2003帐户列表使用Outlook 2003对象模型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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