如何使用电子邮件地址确认有效的Lync用户?

编程入门 行业动态 更新时间:2024-10-21 07:38:35
本文介绍了如何使用电子邮件地址确认有效的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");

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

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用户?

本文发布于:2023-11-16 09:56:36,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1603242.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何使用   电子邮件地址   用户   Lync

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!