获取选定的联系信息 [英] get the selected contact information

查看:70
本文介绍了获取选定的联系信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何获取C#中选定的Outlook联系人的值?

how can i get the value of the selected outlook contact in C#?

推荐答案

Try
Try
private void AccessContacts(string findLastName)
{
    Outlook.MAPIFolder folderContacts = this.ActiveExplorer().Session.
        GetDefaultFolder(Outlook.OlDefaultFolders.olFolderContacts);
    Outlook.Items searchFolder = folderContacts.Items;
    int counter = 0;
    foreach (Outlook.ContactItem foundContact in searchFolder)
    {
        //Access ContactItem properties inside foundCountact
     
    }
    MessageBox.Show("You have " + counter +
        " contacts with last names that contain "
        + findLastName + ".");
}


这篇关于获取选定的联系信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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