전자 메일 주소가 유효한 Lync 사용자인지 확인하려고 시도했지만 적절한 결과를 제공하지 않습니다.전자 메일 주소가 올바른지 확인하는 방법 Lync User?
LyncClient client = LyncClient.GetClient();
Contact contact = client.ContactManager.GetContactByUri("[email protected]");
방법 항목 :이 방법에서는
if(contact.UnifiedCommunicationType == UnifiedCommunicationType.Enabled)
{
}
else if(contact.UnifiedCommunicationType == UnifiedCommunicationType.NotEnabled)
{
}
else if(contact.UnifiedCommunicationType == UnifiedCommunicationType.Unknown)
{
}
내가 얻을 중 유효한 Lync 사용자에 대한 임의의 이메일 주소와 NotEnabled에 대한 알 수없는. 그러나, Iam은 "Invalid"를 얻지 못합니다.
방법 2 :이 방법에서는
ContactType contact_type = (ContactType)contact.GetContactInfomration(ContactInformationType.ContactType);
if(contact_type == ContactType.Person)
{
}
else if(contact_type == ContactType.Invalid)
{
}
else if(contact_type == ContactType.Unknown)
{
}
, 내가 상관없이 EMAILADDRESS의 "사람"얻고있다. 그러므로, 나는 이것을하지 않는다.
어떻게 해결할 수 있습니까?
참고 : 수신하려는 전자 메일의 발신자가 인 Outlook이 유효한 lync 사용자인지 확인하고 싶습니다.
내가 답장이 늦어 죄송 C# 코드에 대한 SRV 레코드가 nslookup하는 것이지만 추가 "모금"에 이메일 주소는 위의 두 가지 방법으로 시도했을 때 결과와 어떤 차이가 없습니다. SRV 레코드로 확인할 방법이 있습니까? (확실하지 않습니다) – Coder323