WmlControlAdapter.RenderBeginLink 方法

定义

呈现链接的开始标记。 此 API 已废弃不用。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 移动应用 & 具有 ASP.NET 的网站。 此 API 已废弃不用。 有关如何开发 ASP.NET 移动应用程序的信息,请参阅 移动应用 & 具有 ASP.NET 的网站

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

参数

writer
WmlMobileTextWriter

文本编写器。

targetUrl
String

指定的目标(窗体或 URL)。

softkeyLabel
String

用于软键的文本。

implicitSoftkeyLabel
Boolean

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

mapToSoftkey
Boolean

确定软键标签是否用于链接。 如果为 true,则使用 softkeyLabel 文本。

注解

此方法会自动检查链接的类型,并呈现相应的标记语言。 指定的目标可以引用另一个 URL 或同一页上的窗体。

适用于

另请参阅