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
URL 目标。
- encodeUrl
- Boolean
设置为 true 是否对 URL 进行编码。
- softkeyLabel
- String
如果参数设置为 true,则用于链接的mapToSoftKey软键文本。
- implicitSoftkeyLabel
- Boolean
如果 true 软键标签来自适配器本身(默认标签或其他适配器指定的内容,例如控件的“调用” PhoneCall ),而不是由应用程序作者显式指定的软键标签,则设置为。
- mapToSoftkey
- Boolean
设置为 true 是否映射到设备上的软键。
注解
此调用后跟用于呈现文本的调用或对 RenderImage 方法的调用来呈现超链接内容,后跟对方法的 RenderEndHyperlink 调用。