LinkExtensions.RouteLink Metodo

Definizione

Overload

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

Restituisce un elemento ancoraggio (elemento a) che contiene il percorso virtuale dell'azione specificata.

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

Restituisce un elemento ancoraggio (elemento a) che contiene il percorso virtuale dell'azione specificata.

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

Restituisce un elemento ancoraggio (elemento a) che contiene il percorso virtuale dell'azione specificata.

RouteLink(HtmlHelper, String, String, RouteValueDictionary)

Restituisce un elemento ancoraggio (elemento a) che contiene il percorso virtuale dell'azione specificata.

RouteLink(HtmlHelper, String, Object)

Restituisce un elemento ancoraggio (elemento a) che contiene il percorso virtuale dell'azione specificata.

RouteLink(HtmlHelper, String, Object, Object)

Restituisce un elemento ancoraggio (elemento a) che contiene il percorso virtuale dell'azione specificata.

RouteLink(HtmlHelper, String, RouteValueDictionary)

Restituisce un elemento ancoraggio (elemento a) che contiene il percorso virtuale dell'azione specificata.

RouteLink(HtmlHelper, String, String)

Restituisce un elemento ancoraggio (elemento a) che contiene il percorso virtuale dell'azione specificata.

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

Restituisce un elemento ancoraggio (elemento a) che contiene il percorso virtuale dell'azione specificata.

RouteLink(HtmlHelper, String, String, Object)

Restituisce un elemento ancoraggio (elemento a) che contiene il percorso virtuale dell'azione specificata.

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

Restituisce un elemento ancoraggio (elemento a) che contiene il percorso virtuale dell'azione specificata.

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

Restituisce un elemento ancoraggio (elemento a) che contiene il percorso virtuale dell'azione specificata.

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

Parametri

htmlHelper
HtmlHelper

Istanza dell'helper HTML estesa da questo metodo.

linkText
String

Testo interno dell'elemento ancoraggio.

routeName
String

Nome della route usato per restituire un percorso virtuale.

routeValues
RouteValueDictionary

Oggetto che contiene i parametri per una route.

htmlAttributes
IDictionary<String,Object>

Oggetto che contiene gli attributi HTML da impostare per l'elemento.

Restituisce

Elemento ancoraggio (elemento a).

Eccezioni

Il linkText parametro è null o vuoto.

Si applica a

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

Restituisce un elemento ancoraggio (elemento a) che contiene il percorso virtuale dell'azione specificata.

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

Parametri

htmlHelper
HtmlHelper

Istanza dell'helper HTML estesa da questo metodo.

linkText
String

Testo interno dell'elemento ancoraggio.

routeName
String

Nome della route usato per restituire un percorso virtuale.

routeValues
Object

Oggetto che contiene i parametri per una route. I parametri vengono recuperati tramite reflection esaminando le proprietà dell'oggetto. L'oggetto viene in genere creato usando la sintassi dell'inizializzatore di oggetto.

htmlAttributes
Object

Oggetto che contiene gli attributi HTML da impostare per l'elemento.

Restituisce

Elemento ancoraggio (elemento a).

Eccezioni

Il linkText parametro è null o vuoto.

Si applica a

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

Restituisce un elemento ancoraggio (elemento a) che contiene il percorso virtuale dell'azione specificata.

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

Parametri

htmlHelper
HtmlHelper

Istanza dell'helper HTML estesa da questo metodo.

linkText
String

Testo interno dell'elemento ancoraggio.

routeValues
RouteValueDictionary

Oggetto che contiene i parametri per una route.

htmlAttributes
IDictionary<String,Object>

Oggetto che contiene gli attributi HTML da impostare per l'elemento.

Restituisce

Elemento ancoraggio (elemento a).

Eccezioni

Il linkText parametro è null o vuoto.

Si applica a

RouteLink(HtmlHelper, String, String, RouteValueDictionary)

Restituisce un elemento ancoraggio (elemento a) che contiene il percorso virtuale dell'azione specificata.

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

Parametri

htmlHelper
HtmlHelper

Istanza dell'helper HTML estesa da questo metodo.

linkText
String

Testo interno dell'elemento ancoraggio.

routeName
String

Nome della route usato per restituire un percorso virtuale.

routeValues
RouteValueDictionary

Oggetto che contiene i parametri per una route.

Restituisce

Elemento ancoraggio (elemento a).

Eccezioni

Il linkText parametro è null o vuoto.

Si applica a

RouteLink(HtmlHelper, String, Object)

Restituisce un elemento ancoraggio (elemento a) che contiene il percorso virtuale dell'azione specificata.

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

Parametri

htmlHelper
HtmlHelper

Istanza dell'helper HTML estesa da questo metodo.

linkText
String

Testo interno dell'elemento ancoraggio.

routeValues
Object

Oggetto che contiene i parametri per una route. I parametri vengono recuperati tramite reflection esaminando le proprietà dell'oggetto. L'oggetto viene in genere creato usando la sintassi dell'inizializzatore di oggetto.

Restituisce

Elemento ancoraggio (elemento a).

Eccezioni

Il linkText parametro è null o vuoto.

Si applica a

RouteLink(HtmlHelper, String, Object, Object)

Restituisce un elemento ancoraggio (elemento a) che contiene il percorso virtuale dell'azione specificata.

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

Parametri

htmlHelper
HtmlHelper

Istanza dell'helper HTML estesa da questo metodo.

linkText
String

Testo interno dell'elemento ancoraggio.

routeValues
Object

Oggetto che contiene i parametri per una route. I parametri vengono recuperati tramite reflection esaminando le proprietà dell'oggetto. L'oggetto viene in genere creato usando la sintassi dell'inizializzatore di oggetto.

htmlAttributes
Object

Oggetto che contiene gli attributi HTML da impostare per l'elemento.

Restituisce

Elemento ancoraggio (elemento a).

Eccezioni

Il linkText parametro è null o vuoto.

Si applica a

RouteLink(HtmlHelper, String, RouteValueDictionary)

Restituisce un elemento ancoraggio (elemento a) che contiene il percorso virtuale dell'azione specificata.

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

Parametri

htmlHelper
HtmlHelper

Istanza dell'helper HTML estesa da questo metodo.

linkText
String

Testo interno dell'elemento ancoraggio.

routeValues
RouteValueDictionary

Oggetto che contiene i parametri per una route.

Restituisce

Elemento ancoraggio (elemento a).

Eccezioni

Il linkText parametro è null o vuoto.

Si applica a

RouteLink(HtmlHelper, String, String)

Restituisce un elemento ancoraggio (elemento a) che contiene il percorso virtuale dell'azione specificata.

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

Parametri

htmlHelper
HtmlHelper

Istanza dell'helper HTML estesa da questo metodo.

linkText
String

Testo interno dell'elemento ancoraggio.

routeName
String

Nome della route usato per restituire un percorso virtuale.

Restituisce

Elemento ancoraggio (elemento a).

Eccezioni

Il linkText parametro è null o vuoto.

Si applica a

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

Restituisce un elemento ancoraggio (elemento a) che contiene il percorso virtuale dell'azione specificata.

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

Parametri

htmlHelper
HtmlHelper

Istanza dell'helper HTML estesa da questo metodo.

linkText
String

Testo interno dell'elemento ancoraggio.

routeName
String

Nome della route usato per restituire un percorso virtuale.

protocol
String

Protocollo per l'URL, ad esempio "http" o "https".

hostName
String

Nome host per l'URL.

fragment
String

Nome del frammento URL (nome dell'ancoraggio).

routeValues
Object

Oggetto che contiene i parametri per una route. I parametri vengono recuperati tramite reflection esaminando le proprietà dell'oggetto. L'oggetto viene in genere creato usando la sintassi dell'inizializzatore di oggetto.

htmlAttributes
Object

Oggetto che contiene gli attributi HTML da impostare per l'elemento.

Restituisce

Elemento ancoraggio (elemento a).

Eccezioni

Il linkText parametro è null o vuoto.

Si applica a

RouteLink(HtmlHelper, String, String, Object)

Restituisce un elemento ancoraggio (elemento a) che contiene il percorso virtuale dell'azione specificata.

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

Parametri

htmlHelper
HtmlHelper

Istanza dell'helper HTML estesa da questo metodo.

linkText
String

Testo interno dell'elemento ancoraggio.

routeName
String

Nome della route usato per restituire un percorso virtuale.

routeValues
Object

Oggetto che contiene i parametri per una route. I parametri vengono recuperati tramite reflection esaminando le proprietà dell'oggetto. L'oggetto viene in genere creato usando la sintassi dell'inizializzatore di oggetto.

Restituisce

Elemento ancoraggio (elemento a).

Eccezioni

Il linkText parametro è null o vuoto.

Si applica a

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

Restituisce un elemento ancoraggio (elemento a) che contiene il percorso virtuale dell'azione specificata.

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

Parametri

htmlHelper
HtmlHelper

Istanza dell'helper HTML estesa da questo metodo.

linkText
String

Testo interno dell'elemento ancoraggio.

routeName
String

Nome della route usato per restituire un percorso virtuale.

protocol
String

Protocollo per l'URL, ad esempio "http" o "https".

hostName
String

Nome host per l'URL.

fragment
String

Nome del frammento URL (nome dell'ancoraggio).

routeValues
RouteValueDictionary

Oggetto che contiene i parametri per una route.

htmlAttributes
IDictionary<String,Object>

Oggetto che contiene gli attributi HTML da impostare per l'elemento.

Restituisce

Elemento ancoraggio (elemento a).

Eccezioni

Il linkText parametro è Null o vuoto.

Si applica a