使用兑换取回默认Outlook电子邮件帐户 [英] retrieving the default outlook email account using Redemption

查看:222
本文介绍了使用兑换取回默认Outlook电子邮件帐户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只是试图用我的方式来使用赎回;我有以下代码从默认配置文件中检索RDOAccounts(电子邮件帐户):

just trying to work my way around using Redemption; I've got the following code to retrieve the RDOAccounts (Email accounts) from the default Profile:

Profiles profiles = (Profiles)Activator.CreateInstance(Type.GetTypeFromProgID("ProfMan.Profiles"));
Profile defaultProfile = profiles.DefaultProfile;           
//open a RDOSession for this profile
RDOSession session = RedemptionLoader.new_RDOSession();
session.Logon(defaultProfile.Name);
RDOAccounts accounts = session.Accounts;

我被困在哪里试图确定哪个RDOAccount对象被设置为默认的电子邮件帐户 - 对象上似乎没有任何属性可以用来查看是否为默认值。

Where I'm stuck is trying to determine which of the RDOAccount objects is set as the default email account - there doesn't seem to be any property on the object that I can use to see whether it's the default or not.

以前有人完成了这个?

推荐答案

使用RDOSession.Accounts集合,特别是RDOAccounts.GetOrder方法: http://www.dimastr.com/redemption/RDOAccounts.htm

Use RDOSession.Accounts collection, in particular RDOAccounts.GetOrder method: http://www.dimastr.com/redemption/RDOAccounts.htm

这篇关于使用兑换取回默认Outlook电子邮件帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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