WmlControlAdapter.RenderLink 方法

定义

呈现包含指定文本的整个链接。 此 API 已过时。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 Mobile Apps &具有 ASP.NET 的网站。

protected:
 void RenderLink(System::Web::UI::MobileControls::Adapters::WmlMobileTextWriter ^ writer, System::String ^ targetUrl, System::String ^ softkeyLabel, bool implicitSoftkeyLabel, bool mapToSoftkey, System::String ^ text, bool breakAfter);
protected void RenderLink(System.Web.UI.MobileControls.Adapters.WmlMobileTextWriter writer, string targetUrl, string softkeyLabel, bool implicitSoftkeyLabel, bool mapToSoftkey, string text, bool breakAfter);
member this.RenderLink : System.Web.UI.MobileControls.Adapters.WmlMobileTextWriter * string * string * bool * bool * string * bool -> unit
Protected Sub RenderLink (writer As WmlMobileTextWriter, targetUrl As String, softkeyLabel As String, implicitSoftkeyLabel As Boolean, mapToSoftkey As Boolean, text As String, breakAfter As Boolean)

参数

writer
WmlMobileTextWriter

指定的文本编写器。

targetUrl
String

URL 目标。

softkeyLabel
String

要用于链接的软键文本。

implicitSoftkeyLabel
Boolean

设置为 true 是否映射到设备上的软键。

mapToSoftkey
Boolean

如果 true 软键标签来自设备适配器本身(默认标签或指定了适配器的其他内容,例如 PhoneCall 控件的“呼叫”),而不是由应用程序作者显式指定的软键标签,则设置为。

text
String

定义链接的文本。

breakAfter
Boolean

如果需要设置属性,BreakAfter则设置为true该属性。

注解

如果参数 mapToSoftKey 设置为 true,则显示参数的文本 softkeyLabel

适用于

另请参阅