如何获取新创建的Lync 2013 / Skype for Business聊天室URL

时间:2015-08-27 01:22:15

标签: c# chat lync-2013 skype-for-business

我有以下代码,我非常确定可以工作,但我不确定要分配什么" conferenceAccess"考虑到新创建的聊天。有没有人知道如何去做?

        if (_lyncAutomation != null)
        {
            AutomationModalities mode = AutomationModalities.InstantMessage;
            var convoSettings = new Dictionary<AutomationModalitySettings, object>();
            convoSettings.Add(AutomationModalitySettings.Subject, chatTitle);
            convoSettings.Add(AutomationModalitySettings.FirstInstantMessage, chat);
            convoSettings.Add(AutomationModalitySettings.SendFirstInstantMessageImmediately, true);

            try
            {
                _lyncAutomation.BeginStartConversation(mode, participants, convoSettings,
                                                  StartConversationCallback, null);

                ConferenceAccessInformation conferenceAccess = ConferenceAccessInformation;
                string chatURL = conferenceAccess.ExternalUrl;

            }

要清楚,上面的代码完美无缺,除了我刚刚添加的最后几行代码。

提前感谢您的帮助。

0 个答案:

没有答案