WmlControlAdapter.RenderLink 方法
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
呈現整個連結,其中含有指定的文字。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 mobile Apps & Sites with 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);
C#
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
文字。
產品 | 版本 |
---|---|
.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 |