如何使用电子邮件地址确认有效的Lync用户? [英] How to confirm valid Lync Users with email address?

查看:67
本文介绍了如何使用电子邮件地址确认有效的Lync用户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想阅读outlook邮件的发件人并确认其是否为有效的Lync用户,以便添加到联系人列表中。

I would like to read the outlook mail's sender and confirm its a valid Lync user or not inorder to add to the contact list.

我尝试从以下代码检查统一通信类型和联系人类型,但结果是"未知"。和"人"我找不到验证电子邮件地址所需的信息。

I tried to check Unified Communication Type and Contact Type from the following code but the results are "Unknown" and "Person" respectively which I dont find the information needed to validate the email address.

LyncClient client = LyncClient.GetClient();
Contact contact = client.ContactManager.GetContactByUri("xxx@xxx.com");


<你能告诉我验证电子邮件地址的正确程序吗?

Can you please let me know the correct procedure to validate the email address?

推荐答案

你应该获得来自群组的联系人

You should get  the contacts from the groups

Contact _contact;
string _contactUri;
foreach(var group in _client.ContactManager.Groups)
{
    foreach (var contact in group)
    {
        //this is the way you could get the Uri of the contacts
        _contact = contact;
        _contactUri = _contact.Uri;
    }
}




$





这篇关于如何使用电子邮件地址确认有效的Lync用户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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