如何确定默认的Outlook帐户? [英] How can I determine the default Outlook account?

查看:71
本文介绍了如何确定默认的Outlook帐户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从我的应用程序登录到Outlook 2007,可以枚举

I'm logging into Outlook 2007 from my application and can enumerate the Accounts.Item[i] objects to look at Account settings.

我找不到的是:

如何确定(使用

How can I determine (using the Outlook 2007 object model) which one of these is the default Outlook account?

没有诸如Store.StoreAccount 之类的东西.兑换(我不使用).
此SO帖子没有答案

There is no such thing as Store.StoreAccount as suggested here for Redemption (which I don't use).
This SO post does not have an answer

推荐答案

首先,有3种帐户类型:商店,邮件和通讯录.您需要哪个默认帐户?

Firstly, there are 3 types of accounts - store, mail and address book. Which default account do you need?

第二,您可以使用IOlkAccountManaget对象(在 OutlookSpy 中查看-单击IOlkAccountManaget按钮)正在使用扩展MAPI.否则,您可以使用Redemption及其RDOSession.Accounts.GetOrder方法.

Secondly, you can use IOlkAccountManaget object (look at it in OutlookSpy - click IOlkAccountManaget button) if you are using Extended MAPI. Otherwise you can use Redemption and its RDOSession.Accounts.GetOrder method.

这篇关于如何确定默认的Outlook帐户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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