LinkExtensions.RouteLink Método

Definición

Sobrecargas

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

Devuelve un elemento delimitador (elemento a) que contiene la ruta de acceso virtual de la acción especificada.

RouteLink(HtmlHelper, String, String, Object, Object)

Devuelve un elemento delimitador (elemento a) que contiene la ruta de acceso virtual de la acción especificada.

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

Devuelve un elemento delimitador (elemento a) que contiene la ruta de acceso virtual de la acción especificada.

RouteLink(HtmlHelper, String, String, RouteValueDictionary)

Devuelve un elemento delimitador (elemento a) que contiene la ruta de acceso virtual de la acción especificada.

RouteLink(HtmlHelper, String, Object)

Devuelve un elemento delimitador (elemento a) que contiene la ruta de acceso virtual de la acción especificada.

RouteLink(HtmlHelper, String, Object, Object)

Devuelve un elemento delimitador (elemento a) que contiene la ruta de acceso virtual de la acción especificada.

RouteLink(HtmlHelper, String, RouteValueDictionary)

Devuelve un elemento delimitador (elemento a) que contiene la ruta de acceso virtual de la acción especificada.

RouteLink(HtmlHelper, String, String)

Devuelve un elemento delimitador (elemento a) que contiene la ruta de acceso virtual de la acción especificada.

RouteLink(HtmlHelper, String, String, String, String, String, Object, Object)

Devuelve un elemento delimitador (elemento a) que contiene la ruta de acceso virtual de la acción especificada.

RouteLink(HtmlHelper, String, String, Object)

Devuelve un elemento delimitador (elemento a) que contiene la ruta de acceso virtual de la acción especificada.

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

Devuelve un elemento delimitador (elemento a) que contiene la ruta de acceso virtual de la acción especificada.

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

Devuelve un elemento delimitador (elemento a) que contiene la ruta de acceso virtual de la acción especificada.

public static System.Web.Mvc.MvcHtmlString RouteLink (this System.Web.Mvc.HtmlHelper htmlHelper, string linkText, string routeName, System.Web.Routing.RouteValueDictionary routeValues, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member RouteLink : System.Web.Mvc.HtmlHelper * string * string * System.Web.Routing.RouteValueDictionary * System.Collections.Generic.IDictionary<string, obj> -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function RouteLink (htmlHelper As HtmlHelper, linkText As String, routeName 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.

routeName
String

Nombre de la ruta que se utiliza para devolver una ruta de acceso virtual.

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

RouteLink(HtmlHelper, String, String, Object, Object)

Devuelve un elemento delimitador (elemento a) que contiene la ruta de acceso virtual de la acción especificada.

public static System.Web.Mvc.MvcHtmlString RouteLink (this System.Web.Mvc.HtmlHelper htmlHelper, string linkText, string routeName, object routeValues, object htmlAttributes);
static member RouteLink : System.Web.Mvc.HtmlHelper * string * string * obj * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function RouteLink (htmlHelper As HtmlHelper, linkText As String, routeName 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.

routeName
String

Nombre de la ruta que se utiliza para devolver una ruta de acceso virtual.

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

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

Devuelve un elemento delimitador (elemento a) que contiene la ruta de acceso virtual de la acción especificada.

public static System.Web.Mvc.MvcHtmlString RouteLink (this System.Web.Mvc.HtmlHelper htmlHelper, string linkText, System.Web.Routing.RouteValueDictionary routeValues, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member RouteLink : System.Web.Mvc.HtmlHelper * string * System.Web.Routing.RouteValueDictionary * System.Collections.Generic.IDictionary<string, obj> -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function RouteLink (htmlHelper As HtmlHelper, linkText 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.

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

RouteLink(HtmlHelper, String, String, RouteValueDictionary)

Devuelve un elemento delimitador (elemento a) que contiene la ruta de acceso virtual de la acción especificada.

public static System.Web.Mvc.MvcHtmlString RouteLink (this System.Web.Mvc.HtmlHelper htmlHelper, string linkText, string routeName, System.Web.Routing.RouteValueDictionary routeValues);
static member RouteLink : System.Web.Mvc.HtmlHelper * string * string * System.Web.Routing.RouteValueDictionary -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function RouteLink (htmlHelper As HtmlHelper, linkText As String, routeName 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.

routeName
String

Nombre de la ruta que se utiliza para devolver una ruta de acceso virtual.

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

RouteLink(HtmlHelper, String, Object)

Devuelve un elemento delimitador (elemento a) que contiene la ruta de acceso virtual de la acción especificada.

public static System.Web.Mvc.MvcHtmlString RouteLink (this System.Web.Mvc.HtmlHelper htmlHelper, string linkText, object routeValues);
static member RouteLink : System.Web.Mvc.HtmlHelper * string * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function RouteLink (htmlHelper As HtmlHelper, linkText 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.

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

RouteLink(HtmlHelper, String, Object, Object)

Devuelve un elemento delimitador (elemento a) que contiene la ruta de acceso virtual de la acción especificada.

public static System.Web.Mvc.MvcHtmlString RouteLink (this System.Web.Mvc.HtmlHelper htmlHelper, string linkText, object routeValues, object htmlAttributes);
static member RouteLink : System.Web.Mvc.HtmlHelper * string * obj * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function RouteLink (htmlHelper As HtmlHelper, linkText 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.

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

RouteLink(HtmlHelper, String, RouteValueDictionary)

Devuelve un elemento delimitador (elemento a) que contiene la ruta de acceso virtual de la acción especificada.

public static System.Web.Mvc.MvcHtmlString RouteLink (this System.Web.Mvc.HtmlHelper htmlHelper, string linkText, System.Web.Routing.RouteValueDictionary routeValues);
static member RouteLink : System.Web.Mvc.HtmlHelper * string * System.Web.Routing.RouteValueDictionary -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function RouteLink (htmlHelper As HtmlHelper, linkText 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.

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

RouteLink(HtmlHelper, String, String)

Devuelve un elemento delimitador (elemento a) que contiene la ruta de acceso virtual de la acción especificada.

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

Parámetros

htmlHelper
HtmlHelper

Instancia del asistente HTML que extiende este método.

linkText
String

Texto interno del elemento delimitador.

routeName
String

Nombre de la ruta que se utiliza para devolver una ruta de acceso virtual.

Devoluciones

Un elemento delimitador (elemento a).

Excepciones

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

Se aplica a

RouteLink(HtmlHelper, String, String, String, String, String, Object, Object)

Devuelve un elemento delimitador (elemento a) que contiene la ruta de acceso virtual de la acción especificada.

public static System.Web.Mvc.MvcHtmlString RouteLink (this System.Web.Mvc.HtmlHelper htmlHelper, string linkText, string routeName, string protocol, string hostName, string fragment, object routeValues, object htmlAttributes);
static member RouteLink : System.Web.Mvc.HtmlHelper * string * string * string * string * string * obj * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function RouteLink (htmlHelper As HtmlHelper, linkText As String, routeName 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.

routeName
String

Nombre de la ruta que se utiliza para devolver una ruta de acceso virtual.

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

RouteLink(HtmlHelper, String, String, Object)

Devuelve un elemento delimitador (elemento a) que contiene la ruta de acceso virtual de la acción especificada.

public static System.Web.Mvc.MvcHtmlString RouteLink (this System.Web.Mvc.HtmlHelper htmlHelper, string linkText, string routeName, object routeValues);
static member RouteLink : System.Web.Mvc.HtmlHelper * string * string * obj -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function RouteLink (htmlHelper As HtmlHelper, linkText As String, routeName 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.

routeName
String

Nombre de la ruta que se utiliza para devolver una ruta de acceso virtual.

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

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

Devuelve un elemento delimitador (elemento a) que contiene la ruta de acceso virtual de la acción especificada.

public static System.Web.Mvc.MvcHtmlString RouteLink (this System.Web.Mvc.HtmlHelper htmlHelper, string linkText, string routeName, string protocol, string hostName, string fragment, System.Web.Routing.RouteValueDictionary routeValues, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member RouteLink : System.Web.Mvc.HtmlHelper * string * string * string * string * string * System.Web.Routing.RouteValueDictionary * System.Collections.Generic.IDictionary<string, obj> -> System.Web.Mvc.MvcHtmlString
<Extension()>
Public Function RouteLink (htmlHelper As HtmlHelper, linkText As String, routeName 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.

routeName
String

Nombre de la ruta que se utiliza para devolver una ruta de acceso virtual.

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