WmlControlAdapter.RenderBeginLink 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
呈现链接的开始标记。 此 API 已过时。 有关如何开发 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
如果
- mapToSoftkey
- Boolean
确定软键标签是否用于链接。 如果 true为文本, softkeyLabel 则使用文本。
注解
此方法会自动检查链接的类型并呈现相应的标记语言。 指定的目标可以引用另一个 URL 或同一页上的窗体。