InstantMessageReceivedEventArgs不返回html内容 [英] InstantMessageReceivedEventArgs doesn't return html content

查看:81
本文介绍了InstantMessageReceivedEventArgs不返回html内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,

我的应用程序正在尝试保存特定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?

推荐答案

默认情况下,UCMA只会宣传它支持纯文本。

By default UCMA only advertises that it supports 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内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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