.net 如何创建Microsoft Outlook编码的UI扩展插件

.net 如何创建Microsoft Outlook编码的UI扩展插件,.net,coded-ui-tests,.net,Coded Ui Tests,我有一个Autonomy/iManager(文档管理系统)应用程序,该应用程序集成在Microsoft outlook中,它在标题、文档版本、作者等列中将结果作为不同的邮件项目部分提供给您。我需要使用编码的UI自动化此应用程序,但我无法选择结果,这就像另一个邮件部分的收件箱结果一样。 我在网上搜索,想找到一个插件以外的替代方法来捕获这些结果,但除了编码的ui扩展插件之外,我找不到其他方法 有没有办法从outlook中捕获这些项目?或者,如果我需要一个编码的ui扩展插件,有人能提供一个已经有插件的

我有一个Autonomy/iManager(文档管理系统)应用程序,该应用程序集成在Microsoft outlook中,它在标题、文档版本、作者等列中将结果作为不同的邮件项目部分提供给您。我需要使用编码的UI自动化此应用程序,但我无法选择结果,这就像另一个邮件部分的收件箱结果一样。 我在网上搜索,想找到一个插件以外的替代方法来捕获这些结果,但除了编码的ui扩展插件之外,我找不到其他方法


有没有办法从outlook中捕获这些项目?或者,如果我需要一个编码的ui扩展插件,有人能提供一个已经有插件的用户界面扩展插件吗。

我是通过OOM完成的。我使用发件人的电子邮件地址和电子邮件主题来查找邮件。代码如下

private string SelectMail(string addressTag, string subject)

{
    Outlook.Application app = new Outlook.Application();
    Outlook.Explorer explorer = app.ActiveExplorer();
    explorer.ClearSelection();

    string senderEmail = Utils.Setting.Get(addressTag);

    IEnumerable<Outlook.MailItem> selectedMails = from Outlook.MailItem mailItem in explorer.CurrentFolder.Items
                                                  where mailItem.SenderEmailAddress == senderEmail && mailItem.Subject == subject
                                                  select mailItem;
    Outlook.MailItem mail = selectedMails.FirstOrDefault<Outlook.MailItem>();

    explorer.AddToSelection(mail);

    return mail.Subject;
}
private string SelectMail(字符串地址标签,字符串主题)
{
Outlook.Application app=新建Outlook.Application();
Outlook.Explorer=app.ActiveExplorer();
explorer.ClearSelection();
字符串senderEmail=Utils.Setting.Get(addressTag);
IEnumerable selectedMails=来自explorer.CurrentFolder.Items中的Outlook.MailItem MailItem
其中mailItem.SenderEmailAddress==senderEmail&&mailItem.Subject==Subject
选择邮件项目;
Outlook.MailItem mail=selectedMails.FirstOrDefault();
explorer.AddToSelection(邮件);
返回邮件。主题;
}