问题描述
我从我的应用程序登录到Outlook 2007,可以枚举帐户 .Item [i]对象以查看帐户设置.
I'm logging into Outlook 2007 from my application and can enumerate the Accounts.Item[i] objects to look at Account settings.
我找不到的是:
如何确定(使用 Outlook 2007对象模型)中的哪个是默认 Outlook帐户?
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帐户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!