共用方式為


UpWmlMobileTextWriter.RenderBeginHyperlink 方法

定義

開始呈現超連結項目。 這個 API 已經過時。 如需如何開發 ASP.NET 行動應用程式的資訊,請參閱 具有 ASP.NET 的Mobile Apps & Sites

public:
 override void RenderBeginHyperlink(System::String ^ targetUrl, bool encodeUrl, System::String ^ softkeyLabel, bool implicitSoftkeyLabel, bool mapToSoftkey);
public override void RenderBeginHyperlink (string targetUrl, bool encodeUrl, string softkeyLabel, bool implicitSoftkeyLabel, bool mapToSoftkey);
override this.RenderBeginHyperlink : string * bool * string * bool * bool -> unit
Public Overrides Sub RenderBeginHyperlink (targetUrl As String, encodeUrl As Boolean, softkeyLabel As String, implicitSoftkeyLabel As Boolean, mapToSoftkey As Boolean)

參數

targetUrl
String

URL 目標。

encodeUrl
Boolean

如果要編碼 URL,請設定為 true

softkeyLabel
String

如果 mapToSoftkey 參數設定為 true,表示是連結要使用的螢幕鍵盤文字。

implicitSoftkeyLabel
Boolean

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

mapToSoftkey
Boolean

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

例外狀況

寫入器已開始寫入超連結,

-或-

回應為回傳。

備註

這個呼叫後面可以接著呼叫轉譯文字,或呼叫 RenderImage 方法來轉譯超鏈接內容,後面接著呼叫 RenderEndHyperlink 方法。

適用於

另請參閱