LinkExtensions.ActionLink Método

Definición

Sobrecargas

ActionLink(HtmlHelper, String, String)

Devuelve un elemento delimitador (un elemento) para el texto y la acción de vínculo especificados.

ActionLink(HtmlHelper, String, String, Object)

Devuelve un elemento delimitador (un elemento) para el texto de vínculo, la acción y los valores de ruta especificados.

ActionLink(HtmlHelper, String, String, String)

Devuelve un elemento delimitador (un elemento) para el texto de vínculo, la acción y el controlador especificados.

ActionLink(HtmlHelper, String, String, RouteValueDictionary)

Devuelve un elemento delimitador (un elemento) para el texto de vínculo, la acción y los valores de ruta especificados como diccionario de valores de ruta.

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

Devuelve un elemento delimitador (un elemento) para el texto de vínculo, la acción, los valores de ruta y los atributos HTML especificados.

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

Devuelve un elemento delimitador (un elemento) para el texto de vínculo, la acción, los valores de ruta especificados como un diccionario de valores de ruta y los atributos HTML como diccionario.

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

Devuelve un elemento delimitador (un elemento) para el texto de vínculo, la acción, el controlador, los valores de ruta y los atributos HTML especificados.

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

Devuelve un elemento delimitador (un elemento) para el texto de vínculo, la acción, el controlador, los valores de ruta como un diccionario de valores de ruta y los atributos HTML especificados como diccionario.

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

Devuelve un elemento delimitador (un elemento) para el texto de vínculo, la acción, el controlador, el protocolo, el nombre de host, el fragmento de dirección URL, los valores de ruta y los atributos HTML especificados.

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

Devuelve un elemento delimitador (un elemento) para el texto de vínculo, acción, controlador, protocolo, nombre de host, fragmento de dirección URL, valores de ruta como diccionario de valores de ruta y atributos HTML como diccionario.

ActionLink(HtmlHelper, String, String)

Devuelve un elemento delimitador (un elemento) para el texto y la acción de vínculo especificados.

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

Instancia del asistente HTML que extiende este método.

linkText
String

Texto interno del elemento delimitador.

actionName
String

Nombre de la acción.

Devoluciones

Un elemento delimitador (elemento a).

Excepciones

El linkText parámetro es null o está vacío.

Se aplica a

ActionLink(HtmlHelper, String, String, Object)

Devuelve un elemento delimitador (un elemento) para el texto de vínculo, la acción y los valores de ruta especificados.

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

Instancia del asistente HTML que extiende este método.

linkText
String

Texto interno del elemento delimitador.

actionName
String

Nombre de la acción.

routeValues
Object

Objeto que contiene los parámetros para una ruta. Los parámetros se recuperan mediante reflexión examinando las propiedades del objeto. El objeto suele crearse utilizando la sintaxis del inicializador de objeto.

Devoluciones

Un elemento delimitador (elemento a).

Excepciones

El linkText parámetro es null o está vacío.

Se aplica a

ActionLink(HtmlHelper, String, String, String)

Devuelve un elemento delimitador (un elemento) para el texto de vínculo, la acción y el 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

Instancia del asistente HTML que extiende este método.

linkText
String

Texto interno del elemento delimitador.

actionName
String

Nombre de la acción.

controllerName
String

El nombre del controlador.

Devoluciones

Un elemento delimitador (elemento a).

Excepciones

El linkText parámetro es null o está vacío.

Se aplica a

ActionLink(HtmlHelper, String, String, RouteValueDictionary)

Devuelve un elemento delimitador (un elemento) para el texto de vínculo, la acción y los valores de ruta especificados como diccionario de valores de ruta.

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

Instancia del asistente HTML que extiende este método.

linkText
String

Texto interno del elemento delimitador.

actionName
String

Nombre de la acción.

routeValues
RouteValueDictionary

Objeto que contiene los parámetros para una ruta.

Devoluciones

Un elemento delimitador (elemento a).

Excepciones

El linkText parámetro es null o está vacío.

Se aplica a

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

Devuelve un elemento delimitador (un elemento) para el texto de vínculo, la acción, los valores de ruta y los atributos HTML especificados.

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

Instancia del asistente HTML que extiende este método.

linkText
String

Texto interno del elemento delimitador.

actionName
String

Nombre de la acción.

routeValues
Object

Objeto que contiene los parámetros para una ruta. Los parámetros se recuperan mediante reflexión examinando las propiedades del objeto. El objeto suele crearse utilizando la sintaxis del inicializador de objeto.

htmlAttributes
Object

Un objeto que contiene los atributos HTML del elemento. Los atributos se recuperan mediante reflexión examinando las propiedades del objeto. El objeto suele crearse utilizando la sintaxis del inicializador de objeto.

Devoluciones

Un elemento delimitador (elemento a).

Excepciones

El linkText parámetro es null o está vacío.

Se aplica a

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

Devuelve un elemento delimitador (un elemento) para el texto de vínculo, la acción, los valores de ruta especificados como un diccionario de valores de ruta y los atributos HTML como diccionario.

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

Instancia del asistente HTML que extiende este método.

linkText
String

Texto interno del elemento delimitador.

actionName
String

Nombre de la acción.

routeValues
RouteValueDictionary

Objeto que contiene los parámetros para una ruta.

htmlAttributes
IDictionary<String,Object>

Objeto que contiene los atributos HTML que se van a establecer para el elemento .

Devoluciones

Un elemento delimitador (elemento a).

Excepciones

El linkText parámetro es null o está vacío.

Se aplica a

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

Devuelve un elemento delimitador (un elemento) para el texto de vínculo, la acción, el controlador, los valores de ruta y los atributos HTML especificados.

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

Instancia del asistente HTML que extiende este método.

linkText
String

Texto interno del elemento delimitador.

actionName
String

Nombre de la acción.

controllerName
String

El nombre del controlador.

routeValues
Object

Objeto que contiene los parámetros para una ruta. Los parámetros se recuperan mediante reflexión examinando las propiedades del objeto. El objeto suele crearse utilizando la sintaxis del inicializador de objeto.

htmlAttributes
Object

Objeto que contiene los atributos HTML que se van a establecer para el elemento .

Devoluciones

Un elemento delimitador (elemento a).

Excepciones

El linkText parámetro es null o está vacío.

Se aplica a

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

Devuelve un elemento delimitador (un elemento) para el texto de vínculo, la acción, el controlador, los valores de ruta como un diccionario de valores de ruta y los atributos HTML especificados como diccionario.

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

Instancia del asistente HTML que extiende este método.

linkText
String

Texto interno del elemento delimitador.

actionName
String

Nombre de la acción.

controllerName
String

El nombre del controlador.

routeValues
RouteValueDictionary

Objeto que contiene los parámetros para una ruta.

htmlAttributes
IDictionary<String,Object>

Objeto que contiene los atributos HTML que se van a establecer para el elemento .

Devoluciones

Un elemento delimitador (elemento a).

Excepciones

El linkText parámetro es null o está vacío.

Se aplica a

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

Devuelve un elemento delimitador (un elemento) para el texto de vínculo, la acción, el controlador, el protocolo, el nombre de host, el fragmento de dirección URL, los valores de ruta y los atributos HTML especificados.

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

Instancia del asistente HTML que extiende este método.

linkText
String

Texto interno del elemento delimitador.

actionName
String

Nombre de la acción.

controllerName
String

El nombre del controlador.

protocol
String

Protocolo de la dirección URL, como "http" o "https".

hostName
String

Nombre de host para la dirección URL.

fragment
String

Nombre del fragmento de la dirección URL (nombre del delimitador).

routeValues
Object

Objeto que contiene los parámetros para una ruta. Los parámetros se recuperan mediante reflexión examinando las propiedades del objeto. El objeto suele crearse utilizando la sintaxis del inicializador de objeto.

htmlAttributes
Object

Objeto que contiene los atributos HTML que se van a establecer para el elemento .

Devoluciones

Un elemento delimitador (elemento a).

Excepciones

El linkText parámetro es null o está vacío.

Se aplica a

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

Devuelve un elemento delimitador (un elemento) para el texto de vínculo, acción, controlador, protocolo, nombre de host, fragmento de dirección URL, valores de ruta como diccionario de valores de ruta y atributos HTML como diccionario.

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

Instancia del asistente HTML que extiende este método.

linkText
String

Texto interno del elemento delimitador.

actionName
String

Nombre de la acción.

controllerName
String

El nombre del controlador.

protocol
String

Protocolo de la dirección URL, como "http" o "https".

hostName
String

Nombre de host para la dirección URL.

fragment
String

Nombre del fragmento de la dirección URL (nombre del delimitador).

routeValues
RouteValueDictionary

Objeto que contiene los parámetros para una ruta.

htmlAttributes
IDictionary<String,Object>

Objeto que contiene los atributos HTML que se van a establecer para el elemento .

Devoluciones

Un elemento delimitador (elemento a).

Excepciones

El linkText parámetro es null o está vacío.

Se aplica a