大家好,
我想阅读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用户?
发布评论