LinkExtensions.ActionLink Método

Definição

Sobrecargas

ActionLink(HtmlHelper, String, String)

Retorna um elemento Anchor (um elemento) para a ação e o texto do link especificado.

ActionLink(HtmlHelper, String, String, Object)

Retorna um elemento Anchor (um elemento) para o texto do link especificado, a ação e os valores de rota.

ActionLink(HtmlHelper, String, String, String)

Retorna um elemento Anchor (um elemento) para o texto do link, a ação e o controlador especificados.

ActionLink(HtmlHelper, String, String, RouteValueDictionary)

Retorna um elemento Anchor (um elemento) para o texto do link especificado, a ação e os valores de rota como um dicionário de valor de rota.

ActionLink(HtmlHelper, String, String, Object, Object)

Retorna um elemento Anchor (um elemento) para o texto do link especificado, a ação, os valores de rota e os atributos HTML.

ActionLink(HtmlHelper, String, String, RouteValueDictionary, IDictionary<String,Object>)

Retorna um elemento Anchor (um elemento) para o texto do link especificado, a ação, os valores de rota como um dicionário de valor de rota e os atributos HTML como um dicionário.

ActionLink(HtmlHelper, String, String, String, Object, Object)

Retorna um elemento Anchor (um elemento) para o texto do link especificado, a ação, o controlador, os valores de rota e os atributos HTML.

ActionLink(HtmlHelper, String, String, String, RouteValueDictionary, IDictionary<String,Object>)

Retorna um elemento Anchor (um elemento) para o texto do link especificado, a ação, o controlador, os valores de rota como um dicionário de valor de rota e os atributos HTML como um dicionário.

ActionLink(HtmlHelper, String, String, String, String, String, String, Object, Object)

Retorna um elemento Anchor (um elemento) para o texto do link especificado, a ação, o controlador, o protocolo, o nome do host, o fragmento de URL, os valores de rota e os atributos HTML.

ActionLink(HtmlHelper, String, String, String, String, String, String, RouteValueDictionary, IDictionary<String,Object>)

Retorna um elemento Anchor (um elemento) para o texto do link especificado, a ação, o controlador, o protocolo, o nome do host, o fragmento de URL, os valores de rota como um dicionário de valor de rota e os atributos HTML como um dicionário.

ActionLink(HtmlHelper, String, String)

Retorna um elemento Anchor (um elemento) para a ação e o texto do link especificado.

public static System.Web.Mvc.MvcHtmlString ActionLink (this System.Web.Mvc.HtmlHelper htmlHelper, string linkText, string actionName);
static member ActionLink : System.Web.Mvc.HtmlHelper * string * string -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function ActionLink (htmlHelper As HtmlHelper, linkText As String, actionName As String) As MvcHtmlString

Parâmetros

htmlHelper
HtmlHelper

A instância auxiliar HTML que este método estende.

linkText
String

O texto interno do elemento âncora.

actionName
String

O nome da ação.

Retornos

MvcHtmlString

Um elemento âncora (elemento a).

Exceções

O linkText parâmetro é nulo ou está vazio.

Aplica-se a

ActionLink(HtmlHelper, String, String, Object)

Retorna um elemento Anchor (um elemento) para o texto do link especificado, a ação e os valores de rota.

public static System.Web.Mvc.MvcHtmlString ActionLink (this System.Web.Mvc.HtmlHelper htmlHelper, string linkText, string actionName, object routeValues);
static member ActionLink : System.Web.Mvc.HtmlHelper * string * string * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function ActionLink (htmlHelper As HtmlHelper, linkText As String, actionName As String, routeValues As Object) As MvcHtmlString

Parâmetros

htmlHelper
HtmlHelper

A instância auxiliar HTML que este método estende.

linkText
String

O texto interno do elemento âncora.

actionName
String

O nome da ação.

routeValues
Object

Um objeto que contém os parâmetros para uma rota. Os parâmetros são recuperados por meio de reflexo, examinando-se as propriedades do objeto. O objeto é tipicamente criado usando-se a sintaxe do inicializador de objeto.

Retornos

MvcHtmlString

Um elemento âncora (elemento a).

Exceções

O linkText parâmetro é nulo ou está vazio.

Aplica-se a

ActionLink(HtmlHelper, String, String, String)

Retorna um elemento Anchor (um elemento) para o texto do link, a ação e o controlador especificados.

public static System.Web.Mvc.MvcHtmlString ActionLink (this System.Web.Mvc.HtmlHelper htmlHelper, string linkText, string actionName, string controllerName);
static member ActionLink : System.Web.Mvc.HtmlHelper * string * string * string -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function ActionLink (htmlHelper As HtmlHelper, linkText As String, actionName As String, controllerName As String) As MvcHtmlString

Parâmetros

htmlHelper
HtmlHelper

A instância auxiliar HTML que este método estende.

linkText
String

O texto interno do elemento âncora.

actionName
String

O nome da ação.

controllerName
String

O nome do controlador.

Retornos

MvcHtmlString

Um elemento âncora (elemento a).

Exceções

O linkText parâmetro é nulo ou está vazio.

Aplica-se a

ActionLink(HtmlHelper, String, String, RouteValueDictionary)

Retorna um elemento Anchor (um elemento) para o texto do link especificado, a ação e os valores de rota como um dicionário de valor de rota.

public static System.Web.Mvc.MvcHtmlString ActionLink (this System.Web.Mvc.HtmlHelper htmlHelper, string linkText, string actionName, System.Web.Routing.RouteValueDictionary routeValues);
static member ActionLink : System.Web.Mvc.HtmlHelper * string * string * System.Web.Routing.RouteValueDictionary -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function ActionLink (htmlHelper As HtmlHelper, linkText As String, actionName As String, routeValues As RouteValueDictionary) As MvcHtmlString

Parâmetros

htmlHelper
HtmlHelper

A instância auxiliar HTML que este método estende.

linkText
String

O texto interno do elemento âncora.

actionName
String

O nome da ação.

routeValues
RouteValueDictionary

Um objeto que contém os parâmetros para uma rota.

Retornos

MvcHtmlString

Um elemento âncora (elemento a).

Exceções

O linkText parâmetro é nulo ou está vazio.

Aplica-se a

ActionLink(HtmlHelper, String, String, Object, Object)

Retorna um elemento Anchor (um elemento) para o texto do link especificado, a ação, os valores de rota e os atributos HTML.

public static System.Web.Mvc.MvcHtmlString ActionLink (this System.Web.Mvc.HtmlHelper htmlHelper, string linkText, string actionName, object routeValues, object htmlAttributes);
static member ActionLink : System.Web.Mvc.HtmlHelper * string * string * obj * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function ActionLink (htmlHelper As HtmlHelper, linkText As String, actionName As String, routeValues As Object, htmlAttributes As Object) As MvcHtmlString

Parâmetros

htmlHelper
HtmlHelper

A instância auxiliar HTML que este método estende.

linkText
String

O texto interno do elemento âncora.

actionName
String

O nome da ação.

routeValues
Object

Um objeto que contém os parâmetros para uma rota. Os parâmetros são recuperados por meio de reflexo, examinando-se as propriedades do objeto. O objeto é tipicamente criado usando-se a sintaxe do inicializador de objeto.

htmlAttributes
Object

Um objeto que contém os atributos HTML para o elemento. Os atributos são recuperados por meio de reflexo, examinando-se as propriedades do objeto. O objeto é tipicamente criado usando-se a sintaxe do inicializador de objeto.

Retornos

MvcHtmlString

Um elemento âncora (elemento a).

Exceções

O linkText parâmetro é nulo ou está vazio.

Aplica-se a

ActionLink(HtmlHelper, String, String, RouteValueDictionary, IDictionary<String,Object>)

Retorna um elemento Anchor (um elemento) para o texto do link especificado, a ação, os valores de rota como um dicionário de valor de rota e os atributos HTML como um dicionário.

public static System.Web.Mvc.MvcHtmlString ActionLink (this System.Web.Mvc.HtmlHelper htmlHelper, string linkText, string actionName, System.Web.Routing.RouteValueDictionary routeValues, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member ActionLink : System.Web.Mvc.HtmlHelper * string * string * System.Web.Routing.RouteValueDictionary * System.Collections.Generic.IDictionary<string, obj> -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function ActionLink (htmlHelper As HtmlHelper, linkText As String, actionName As String, routeValues As RouteValueDictionary, htmlAttributes As IDictionary(Of String, Object)) As MvcHtmlString

Parâmetros

htmlHelper
HtmlHelper

A instância auxiliar HTML que este método estende.

linkText
String

O texto interno do elemento âncora.

actionName
String

O nome da ação.

routeValues
RouteValueDictionary

Um objeto que contém os parâmetros para uma rota.

htmlAttributes
IDictionary<String,Object>

Um objeto que contém os atributos HTML a serem definidos para o elemento.

Retornos

MvcHtmlString

Um elemento âncora (elemento a).

Exceções

O linkText parâmetro é nulo ou está vazio.

Aplica-se a

ActionLink(HtmlHelper, String, String, String, Object, Object)

Retorna um elemento Anchor (um elemento) para o texto do link especificado, a ação, o controlador, os valores de rota e os atributos HTML.

public static System.Web.Mvc.MvcHtmlString ActionLink (this System.Web.Mvc.HtmlHelper htmlHelper, string linkText, string actionName, string controllerName, object routeValues, object htmlAttributes);
static member ActionLink : System.Web.Mvc.HtmlHelper * string * string * string * obj * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function ActionLink (htmlHelper As HtmlHelper, linkText As String, actionName As String, controllerName As String, routeValues As Object, htmlAttributes As Object) As MvcHtmlString

Parâmetros

htmlHelper
HtmlHelper

A instância auxiliar HTML que este método estende.

linkText
String

O texto interno do elemento âncora.

actionName
String

O nome da ação.

controllerName
String

O nome do controlador.

routeValues
Object

Um objeto que contém os parâmetros para uma rota. Os parâmetros são recuperados por meio de reflexo, examinando-se as propriedades do objeto. O objeto é tipicamente criado usando-se a sintaxe do inicializador de objeto.

htmlAttributes
Object

Um objeto que contém os atributos HTML a serem definidos para o elemento.

Retornos

MvcHtmlString

Um elemento âncora (elemento a).

Exceções

O linkText parâmetro é nulo ou está vazio.

Aplica-se a

ActionLink(HtmlHelper, String, String, String, RouteValueDictionary, IDictionary<String,Object>)

Retorna um elemento Anchor (um elemento) para o texto do link especificado, a ação, o controlador, os valores de rota como um dicionário de valor de rota e os atributos HTML como um dicionário.

public static System.Web.Mvc.MvcHtmlString ActionLink (this System.Web.Mvc.HtmlHelper htmlHelper, string linkText, string actionName, string controllerName, System.Web.Routing.RouteValueDictionary routeValues, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member ActionLink : System.Web.Mvc.HtmlHelper * string * string * string * System.Web.Routing.RouteValueDictionary * System.Collections.Generic.IDictionary<string, obj> -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function ActionLink (htmlHelper As HtmlHelper, linkText As String, actionName As String, controllerName As String, routeValues As RouteValueDictionary, htmlAttributes As IDictionary(Of String, Object)) As MvcHtmlString

Parâmetros

htmlHelper
HtmlHelper

A instância auxiliar HTML que este método estende.

linkText
String

O texto interno do elemento âncora.

actionName
String

O nome da ação.

controllerName
String

O nome do controlador.

routeValues
RouteValueDictionary

Um objeto que contém os parâmetros para uma rota.

htmlAttributes
IDictionary<String,Object>

Um objeto que contém os atributos HTML a serem definidos para o elemento.

Retornos

MvcHtmlString

Um elemento âncora (elemento a).

Exceções

O linkText parâmetro é nulo ou está vazio.

Aplica-se a

ActionLink(HtmlHelper, String, String, String, String, String, String, Object, Object)

Retorna um elemento Anchor (um elemento) para o texto do link especificado, a ação, o controlador, o protocolo, o nome do host, o fragmento de URL, os valores de rota e os atributos HTML.

public static System.Web.Mvc.MvcHtmlString ActionLink (this System.Web.Mvc.HtmlHelper htmlHelper, string linkText, string actionName, string controllerName, string protocol, string hostName, string fragment, object routeValues, object htmlAttributes);
static member ActionLink : System.Web.Mvc.HtmlHelper * string * string * string * string * string * string * obj * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function ActionLink (htmlHelper As HtmlHelper, linkText As String, actionName As String, controllerName As String, protocol As String, hostName As String, fragment As String, routeValues As Object, htmlAttributes As Object) As MvcHtmlString

Parâmetros

htmlHelper
HtmlHelper

A instância auxiliar HTML que este método estende.

linkText
String

O texto interno do elemento âncora.

actionName
String

O nome da ação.

controllerName
String

O nome do controlador.

protocol
String

O protocolo para a URL, como "http" ou "https".

hostName
String

O nome do host da URL.

fragment
String

O nome do fragmento de URL (o nome âncora).

routeValues
Object

Um objeto que contém os parâmetros para uma rota. Os parâmetros são recuperados por meio de reflexo, examinando-se as propriedades do objeto. O objeto é tipicamente criado usando-se a sintaxe do inicializador de objeto.

htmlAttributes
Object

Um objeto que contém os atributos HTML a serem definidos para o elemento.

Retornos

MvcHtmlString

Um elemento âncora (elemento a).

Exceções

O linkText parâmetro é nulo ou está vazio.

Aplica-se a

ActionLink(HtmlHelper, String, String, String, String, String, String, RouteValueDictionary, IDictionary<String,Object>)

Retorna um elemento Anchor (um elemento) para o texto do link especificado, a ação, o controlador, o protocolo, o nome do host, o fragmento de URL, os valores de rota como um dicionário de valor de rota e os atributos HTML como um dicionário.

public static System.Web.Mvc.MvcHtmlString ActionLink (this System.Web.Mvc.HtmlHelper htmlHelper, string linkText, string actionName, string controllerName, string protocol, string hostName, string fragment, System.Web.Routing.RouteValueDictionary routeValues, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member ActionLink : System.Web.Mvc.HtmlHelper * string * string * string * string * string * string * System.Web.Routing.RouteValueDictionary * System.Collections.Generic.IDictionary<string, obj> -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function ActionLink (htmlHelper As HtmlHelper, linkText As String, actionName As String, controllerName As String, protocol As String, hostName As String, fragment As String, routeValues As RouteValueDictionary, htmlAttributes As IDictionary(Of String, Object)) As MvcHtmlString

Parâmetros

htmlHelper
HtmlHelper

A instância auxiliar HTML que este método estende.

linkText
String

O texto interno do elemento âncora.

actionName
String

O nome da ação.

controllerName
String

O nome do controlador.

protocol
String

O protocolo para a URL, como "http" ou "https".

hostName
String

O nome do host da URL.

fragment
String

O nome do fragmento de URL (o nome âncora).

routeValues
RouteValueDictionary

Um objeto que contém os parâmetros para uma rota.

htmlAttributes
IDictionary<String,Object>

Um objeto que contém os atributos HTML a serem definidos para o elemento.

Retornos

MvcHtmlString

Um elemento âncora (elemento a).

Exceções

O linkText parâmetro é nulo ou está vazio.

Aplica-se a