2014-09-24 6 views
0

단추를 클릭 할 때 활성 대화 창에 대해 데스크톱 공유 이벤트가 트리거되어야합니다. 심지어 우리가 [ModalityTypes.ApplicationSharing] 널 (null)로 오는 두 섹션 _conversation.Modalities에서 대화의 양상Lync SDK의 데스크톱 공유에서 응용 프로그램 모드가 null을 반환합니다.

void ConversationManager_ConversationAdded(object sender, Microsoft.Lync.Model.Conversation.ConversationManagerEventArgs e) 
     { 
      _sharingModality = (ApplicationSharingModality)_conversation.Modalities[ModalityTypes.ApplicationSharing]; 

} 

를 가져 오는 있습니다 추가 대화를

 private void StartSharingResource_Button_Click(object sender, EventArgs e) 
     { 

      //If there is no active conversation to share this resource in, return from handler 
      if (_conversation == null) 
      { 
       return; 
      } 

      //If there is no sharing modality stored locally on the active conversation, get it from the active conversation and store it. 
      if (_sharingModality == null) 
      { 
       _sharingModality = _conversation.Modalities[ModalityTypes.ApplicationSharing] as ApplicationSharingModality; 
      } 

     } 

: 버튼에서 우리는 다음과 같은 코드를 클릭 우리는 객체 참조 오류를 얻습니다. 우리는 LYNC SDK - 15.0.4603.1000 버전을 사용하고 있습니다.

답변

0

Lync SDK 버전이 Lync 클라이언트 버전보다 높기 때문에 일부 API 호출이 보장되지 않습니다. Microsoft에서 최신 Lync 패치를 적용하십시오.