本文介绍了smscomposetask包括消息中的超链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Here is the sample code from MSDN that explains how to compose a text message:


SmsComposeTask smsComposeTask = new SmsComposeTask();

smsComposeTask.To = "2065550123";
smsComposeTask.Body = "Try this new application. It's great!";

smsComposeTask.Show();




我的问题是如何在.Body属性中包含网页超链接?


My question is how can I include a web page hyperlink within .Body property?

推荐答案

您可以直接将超链接指定给Body属性。当您调用Show()方法时,它将在消息中包含该超链接,并且在发送消息之后,链接将被激活。

You can assign the hyperlink to Body property directly. When you call Show() method, it will include that hyperlink in the message and after sending the message, the link will be activated.

var sct = new SmsComposeTask {
                To = "1234567890", 
                Body = "http://www.mayurtendulkar.com"};
            sct.Show();


这篇关于smscomposetask包括消息中的超链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-21 13:50