问题描述
嘿,
我的应用程序正在尝试保存特定Skype会议的所有会话,稍后会在其他工具上显示它们。我可以毫无问题地获得纯文本,但是当用户复制粘贴一些html内容时,例如,他/她的电子邮件中的表格,
我只能获得纯文本内容。 InstantMessageReceivedEventArgs.ContentType显示"{text / plain;字符集= UTF-8}"而不是text / html。 我使用的是UCMA 5.0。 有什么方法我可以让SDK返回正确的类型和
内容,而不是只给我纯文本?
My application is trying to save all conversations for specific skype conference and later on show them on a different tool. I can get plain text without problem, but when the user copy paste some html content, for example, a table from his/her email, I can only get the plain text content. InstantMessageReceivedEventArgs.ContentType shows "{text/plain; charset=UTF-8}" instead of text/html. I am using UCMA 5.0. Is there any way I can let the SDK return the right type and content instead of only giving me plain text?
推荐答案
要更改它,您需要在InstantMessagingSettings上设置SupportedFormats属性给定的CollaborationPlatform。
To change that you need to set the SupportedFormats property on the InstantMessagingSettings propery on a given CollaborationPlatform.
_platform.InstantMessagingSettings.SupportedFormats = InstantMessagingFormat.PlainText | InstantMessagingFormat.HtmlText;
这篇关于InstantMessageReceivedEventArgs不返回html内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!