UpWmlMobileTextWriter.RenderBeginHyperlink(String, Boolean, String, Boolean, Boolean) Método
Definição
Inicia a renderização de um elemento de hiperlink.Begins rendering a hyperlink element. Esta API está obsoleta.This API is obsolete. Para saber mais sobre como desenvolver aplicativos móveis ASP.NET, veja Mobile Apps & Sites with ASP.NET (Aplicativos móveis e sites com ASP.NET).For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.
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)
Parâmetros
- targetUrl
- String
O destino da URL.The URL target.
- encodeUrl
- Boolean
Definido como true se a URL está codificada.Set to true if the URL is encoded.
- softkeyLabel
- String
O texto da tecla de função a ser usado para o link se o parâmetro mapToSoftkey estiver definido como true.The softkey text to use for the link if the mapToSoftkey parameter is set to true.
- implicitSoftkeyLabel
- Boolean
Definido como true se o rótulo de tecla é proveniente do próprio adaptador (o rótulo padrão ou algo que é o especificado pelo adaptador, como “Chamar” para um controle PhoneCall), em vez de ser um rótulo de tecla especificado explicitamente pelo autor de aplicativos.Set to true if the softkey label comes from the adapter itself (the default label, or something else that is adapter-specified, such as "Call" for a PhoneCall control), rather than being a softkey label explicitly specified by the application author.
- mapToSoftkey
- Boolean
Definido como true se for mapeado para uma tecla no dispositivo.Set to true if mapping to a softkey on the device.
Exceções
o gravador já começou a gravar um hiperlink,the writer has already begun to write a hyperlink,
- ou --or-
a resposta é um postback.the response is a postback.
Comentários
Essa chamada pode ser seguida por chamadas para renderizar texto ou por uma chamada para o RenderImage método para renderizar o conteúdo do hiperlink, seguido por uma chamada para o RenderEndHyperlink método.This call can be followed by calls to render text or by a call to the RenderImage method to render the hyperlink contents, followed by a call to the RenderEndHyperlink method.