IMessengerAdvanced :: StartConversation上下文数据 [英] IMessengerAdvanced::StartConversation Contextual Data

查看:152
本文介绍了IMessengerAdvanced :: StartConversation上下文数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在试图弄清楚如何使用StartConversation方法获取发送给messenger的上下文数据。我的应用程序当前正在侦听OnIMWindowCreated事件,但我不确定如何获取发送的上下文数据以启动对话?有什么例子吗?谢谢!

Hi,

I'm trying to figure out how to get the contextual data that was send to messenger using the StartConversation method.  My application is currently listening to the OnIMWindowCreated event, but I'm not sure how to get the context data that was sent to start the conversation?  Any examples out there?  Thanks!

推荐答案

您可以使用"历史记录"获取IM窗口的内容。窗户的属性。如果"imWindow"是您从OnIMWindowCreated事件获得的窗口,那么


You can get the contents of the IM window using the "History" property of the window.  If "imWindow' is the window that you got from the OnIMWindowCreated event, then

string content = imWindow.History;




将返回窗口内容。您需要轮询任何更改,因为没有事件可以告诉您内容何时发生变化。






Will return you the contents of the window.  You will need to poll for any changes since there is no event to tell you when the content has changed.




这篇关于IMessengerAdvanced :: StartConversation上下文数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆