答えて

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(); 

詳細情報連絡先情報のタイプを使用して得ることができる個人的なメモ、会社、場所、カテゴリー等

関連する問題