답변

0

에서 Kannan의 답변 외에도 연락처에서 전화 번호를받는 것이 다르기 때문에 더 많은 작업이 필요합니다. 방법은 다음과 같습니다.

LyncClient lyncClient = LyncClient.GetClient(); 
Contact contact = lyncClient.ContactManager.GetContactByUri("sip:[email protected]"); 

List<object> endPoints = new List<object>(); 
var telephoneNumber = (List<object>)contact.GetContactInformation(ContactInformationType.ContactEndpoints); 
endPoints = telephoneNumber.Where<object>(N => ((ContactEndpoint)N).Type == ContactEndpointType.HomePhone || ((ContactEndpoint)N).Type == ContactEndpointType.MobilePhone || ((ContactEndpoint)N).Type == ContactEndpointType.OtherPhone || ((ContactEndpoint)N).Type == ContactEndpointType.WorkPhone).ToList<object>(); 

foreach (var endPoint in endPoints) 
{ 
    //((ContactEndpoint)endPoint).DisplayName.ToString(); //This is the phone number in string format 
} 
2

는 사용자의 위치/사무실 정보는 연락처 개체에서 얻을 수 있습니다 :

LyncClient lyncClient = LyncClient.GetClient(); 
Contact contact = lyncClient.ContactManager.GetContactByUri("sip:[email protected]"); 
String officeLocation = contact.GetContactInformation(ContactInformationType.Office).ToString(); 

더 많은 정보 연락 정보 유형을 사용하여 얻을 수 있습니다 개인 주, 회사, 위치, 부서 등