WmlMobileTextWriter.RenderBeginHyperlink 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
開始轉譯超連結專案。 這個 API 已經過時了。 有關如何開發 ASP.NET 行動應用程式的資訊,請參閱
public:
virtual void RenderBeginHyperlink(System::String ^ targetUrl, bool encodeUrl, System::String ^ softkeyLabel, bool implicitSoftkeyLabel, bool mapToSoftkey);
public virtual void RenderBeginHyperlink(string targetUrl, bool encodeUrl, string softkeyLabel, bool implicitSoftkeyLabel, bool mapToSoftkey);
abstract member RenderBeginHyperlink : string * bool * string * bool * bool -> unit
override this.RenderBeginHyperlink : string * bool * string * bool * bool -> unit
Public Overridable Sub RenderBeginHyperlink (targetUrl As String, encodeUrl As Boolean, softkeyLabel As String, implicitSoftkeyLabel As Boolean, mapToSoftkey As Boolean)
參數
- targetUrl
- String
網址目標。
- encodeUrl
- Boolean
如果 URL 有編碼,則設定為true
- softkeyLabel
- String
如果參數 mapToSoftKey 設為 true,連結的軟鍵文字就是 。
- implicitSoftkeyLabel
- Boolean
設定為 true 軟鍵標籤是否來自介面卡本身(預設標籤,或其他由介面卡指定的東西,例如控制項的「呼叫」 PhoneCall ,而非應用程式作者明確指定的軟鍵標籤)。
- mapToSoftkey
- Boolean
設定為 true if,映射到裝置上的軟金鑰。
備註
此呼叫後可接著呼叫渲染文字,或 RenderImage 呼叫渲染超連結內容的方法,再 RenderEndHyperlink 呼叫該方法。