我从我的应用程序登录到Outlook 2007,并可以枚举Accounts .Item [i]对象来查看帐户设置。如何确定默认的Outlook帐户?
什么我无法找到是:
我如何确定(使用Outlook 2007 object model),这其中的一个是默认 Outlook帐户?
没有Store.StoreAccount as suggested here for Redemption(我不使用)的东西。
This SO post没有答案
我从我的应用程序登录到Outlook 2007,并可以枚举Accounts .Item [i]对象来查看帐户设置。如何确定默认的Outlook帐户?
什么我无法找到是:
我如何确定(使用Outlook 2007 object model),这其中的一个是默认 Outlook帐户?
没有Store.StoreAccount as suggested here for Redemption(我不使用)的东西。
This SO post没有答案
首先,有3种类型的帐户 - 商店,邮件和地址簿。你需要哪个默认账户?
其次,如果您使用的是扩展MAPI,则可以使用IOlkAccountManaget对象(请参阅OutlookSpy - 单击IOlkAccountManaget按钮)。否则,您可以使用Redemption及其RDOSession.Accounts.GetOrder方法。
当我打开程序时,我需要Outlook启动的帐户。注意过去式,因为你已经回答了http://stackoverflow.com/questions/18053110/retrieve-outlook-logged-in-user-smtp-address-after-connecting-through-ole/ ;-) –
对(受挫)downvoter - 投票的理由是有帮助的。 – KevinDTimm