WmlControlAdapter.RenderLink 方法

定義

呈現整個連結,其中含有指定的文字。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with ASP.NET

C#
protected void RenderLink(System.Web.UI.MobileControls.Adapters.WmlMobileTextWriter writer, string targetUrl, string softkeyLabel, bool implicitSoftkeyLabel, bool mapToSoftkey, string text, bool breakAfter);

參數

writer
WmlMobileTextWriter

指定的文字寫入器。

targetUrl
String

URL 目標。

softkeyLabel
String

用於連結的螢幕鍵盤文字。

implicitSoftkeyLabel
Boolean

如果對應至裝置上的螢幕鍵盤,請設定為 true

mapToSoftkey
Boolean

如果螢幕鍵盤標籤來自裝置配接器本身 (預設標籤,或配接器指定的標籤,例如 PhoneCall 控制項的 "Call"),而不是來自應用程式作者明確指定的螢幕鍵盤標籤,則設定為 true

text
String

定義連結的文字。

breakAfter
Boolean

true如果需要設定屬性,BreakAfter請將 設定為 。

備註

mapToSoftKey如果參數設定為 true,則會顯示參數的softkeyLabel文字。

適用於

產品 版本
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

另請參閱