Share via


WmlControlAdapter.RenderLink 方法

定义

呈现整个链接,其中包含指定的文本。 此 API 已废弃不用。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 移动应用 & 具有 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

如果软键标签来自于适配器自身(默认标签,或适配器指定的其他内容,如表示 PhoneCall 控件的“Call”),而不是应用程序作者显式指定的软键标签,则设置为 true

text
String

定义链接的文本。

breakAfter
Boolean

true如果需要设置 属性,BreakAfter请将 设置为 。

注解

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

适用于

另请参阅