Share via


HtmlHelperLinkExtensions.ActionLink Método

Definición

Sobrecargas

ActionLink(IHtmlHelper, String, String)

Devuelve un elemento delimitador (<a>) que contiene una ruta de acceso URL a la acción especificada.

ActionLink(IHtmlHelper, String, String, Object)

Devuelve un elemento delimitador (<a>) que contiene una ruta de acceso URL a la acción especificada.

ActionLink(IHtmlHelper, String, String, String)

Devuelve un elemento delimitador (<a>) que contiene una ruta de acceso URL a la acción especificada.

ActionLink(IHtmlHelper, String, String, Object, Object)

Devuelve un elemento delimitador (<a>) que contiene una ruta de acceso URL a la acción especificada.

ActionLink(IHtmlHelper, String, String, String, Object)

Devuelve un elemento delimitador (<a>) que contiene una ruta de acceso URL a la acción especificada.

ActionLink(IHtmlHelper, String, String, String, Object, Object)

Devuelve un elemento delimitador (<a>) que contiene una ruta de acceso URL a la acción especificada.

ActionLink(IHtmlHelper, String, String)

Source:
HtmlHelperLinkExtensions.cs
Source:
HtmlHelperLinkExtensions.cs

Devuelve un elemento delimitador (<a>) que contiene una ruta de acceso URL a la acción especificada.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Html::IHtmlContent ^ ActionLink(Microsoft::AspNetCore::Mvc::Rendering::IHtmlHelper ^ helper, System::String ^ linkText, System::String ^ actionName);
public static Microsoft.AspNetCore.Html.IHtmlContent ActionLink (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper helper, string linkText, string actionName);
static member ActionLink : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * string * string -> Microsoft.AspNetCore.Html.IHtmlContent
<Extension()>
Public Function ActionLink (helper As IHtmlHelper, linkText As String, actionName As String) As IHtmlContent

Parámetros

helper
IHtmlHelper

La IHtmlHelper instancia que extiende este método.

linkText
String

Texto interno del elemento delimitador. No debe ser null.

actionName
String

Nombre de la acción.

Devoluciones

Nuevo IHtmlContent que contiene el elemento delimitador.

Se aplica a

ActionLink(IHtmlHelper, String, String, Object)

Source:
HtmlHelperLinkExtensions.cs
Source:
HtmlHelperLinkExtensions.cs

Devuelve un elemento delimitador (<a>) que contiene una ruta de acceso URL a la acción especificada.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Html::IHtmlContent ^ ActionLink(Microsoft::AspNetCore::Mvc::Rendering::IHtmlHelper ^ helper, System::String ^ linkText, System::String ^ actionName, System::Object ^ routeValues);
public static Microsoft.AspNetCore.Html.IHtmlContent ActionLink (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper helper, string linkText, string actionName, object routeValues);
static member ActionLink : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * string * string * obj -> Microsoft.AspNetCore.Html.IHtmlContent
<Extension()>
Public Function ActionLink (helper As IHtmlHelper, linkText As String, actionName As String, routeValues As Object) As IHtmlContent

Parámetros

helper
IHtmlHelper

La IHtmlHelper instancia que extiende este método.

linkText
String

Texto interno del elemento delimitador. No debe ser null.

actionName
String

Nombre de la acción.

routeValues
Object

que Object contiene los parámetros de una ruta. Los parámetros se recuperan mediante reflexión mediante el examen de las propiedades de Object. Normalmente se Object crea mediante la Object sintaxis del inicializador. Como alternativa, una IDictionary<TKey,TValue> instancia que contiene los parámetros de ruta.

Devoluciones

Nuevo IHtmlContent que contiene el elemento delimitador.

Se aplica a

ActionLink(IHtmlHelper, String, String, String)

Source:
HtmlHelperLinkExtensions.cs
Source:
HtmlHelperLinkExtensions.cs

Devuelve un elemento delimitador (<a>) que contiene una ruta de acceso URL a la acción especificada.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Html::IHtmlContent ^ ActionLink(Microsoft::AspNetCore::Mvc::Rendering::IHtmlHelper ^ helper, System::String ^ linkText, System::String ^ actionName, System::String ^ controllerName);
public static Microsoft.AspNetCore.Html.IHtmlContent ActionLink (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper helper, string linkText, string actionName, string controllerName);
static member ActionLink : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * string * string * string -> Microsoft.AspNetCore.Html.IHtmlContent
<Extension()>
Public Function ActionLink (helper As IHtmlHelper, linkText As String, actionName As String, controllerName As String) As IHtmlContent

Parámetros

helper
IHtmlHelper

La IHtmlHelper instancia que extiende este método.

linkText
String

Texto interno del elemento delimitador. No debe ser null.

actionName
String

Nombre de la acción.

controllerName
String

El nombre del controlador.

Devoluciones

Nuevo IHtmlContent que contiene el elemento delimitador.

Se aplica a

ActionLink(IHtmlHelper, String, String, Object, Object)

Source:
HtmlHelperLinkExtensions.cs
Source:
HtmlHelperLinkExtensions.cs

Devuelve un elemento delimitador (<a>) que contiene una ruta de acceso URL a la acción especificada.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Html::IHtmlContent ^ ActionLink(Microsoft::AspNetCore::Mvc::Rendering::IHtmlHelper ^ helper, System::String ^ linkText, System::String ^ actionName, System::Object ^ routeValues, System::Object ^ htmlAttributes);
public static Microsoft.AspNetCore.Html.IHtmlContent ActionLink (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper helper, string linkText, string actionName, object routeValues, object htmlAttributes);
static member ActionLink : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * string * string * obj * obj -> Microsoft.AspNetCore.Html.IHtmlContent
<Extension()>
Public Function ActionLink (helper As IHtmlHelper, linkText As String, actionName As String, routeValues As Object, htmlAttributes As Object) As IHtmlContent

Parámetros

helper
IHtmlHelper

La IHtmlHelper instancia que extiende este método.

linkText
String

Texto interno del elemento delimitador. No debe ser null.

actionName
String

Nombre de la acción.

routeValues
Object

que Object contiene los parámetros de una ruta. Los parámetros se recuperan mediante reflexión mediante el examen de las propiedades de Object. Normalmente se Object crea mediante la Object sintaxis del inicializador. Como alternativa, una IDictionary<TKey,TValue> instancia que contiene los parámetros de ruta.

htmlAttributes
Object

que Object contiene los atributos HTML del elemento . Como alternativa, una IDictionary<TKey,TValue> instancia de que contiene los atributos HTML.

Devoluciones

Nuevo IHtmlContent que contiene el elemento delimitador.

Se aplica a

ActionLink(IHtmlHelper, String, String, String, Object)

Source:
HtmlHelperLinkExtensions.cs
Source:
HtmlHelperLinkExtensions.cs

Devuelve un elemento delimitador (<a>) que contiene una ruta de acceso URL a la acción especificada.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Html::IHtmlContent ^ ActionLink(Microsoft::AspNetCore::Mvc::Rendering::IHtmlHelper ^ helper, System::String ^ linkText, System::String ^ actionName, System::String ^ controllerName, System::Object ^ routeValues);
public static Microsoft.AspNetCore.Html.IHtmlContent ActionLink (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper helper, string linkText, string actionName, string controllerName, object routeValues);
static member ActionLink : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * string * string * string * obj -> Microsoft.AspNetCore.Html.IHtmlContent
<Extension()>
Public Function ActionLink (helper As IHtmlHelper, linkText As String, actionName As String, controllerName As String, routeValues As Object) As IHtmlContent

Parámetros

helper
IHtmlHelper

La IHtmlHelper instancia que extiende este método.

linkText
String

Texto interno del elemento delimitador. No debe ser null.

actionName
String

Nombre de la acción.

controllerName
String

El nombre del controlador.

routeValues
Object

que Object contiene los parámetros de una ruta. Los parámetros se recuperan mediante reflexión mediante el examen de las propiedades de Object. Normalmente se Object crea mediante la Object sintaxis del inicializador. Como alternativa, una IDictionary<TKey,TValue> instancia que contiene los parámetros de ruta.

Devoluciones

Nuevo IHtmlContent que contiene el elemento delimitador.

Se aplica a

ActionLink(IHtmlHelper, String, String, String, Object, Object)

Source:
HtmlHelperLinkExtensions.cs
Source:
HtmlHelperLinkExtensions.cs

Devuelve un elemento delimitador (<a>) que contiene una ruta de acceso URL a la acción especificada.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Html::IHtmlContent ^ ActionLink(Microsoft::AspNetCore::Mvc::Rendering::IHtmlHelper ^ helper, System::String ^ linkText, System::String ^ actionName, System::String ^ controllerName, System::Object ^ routeValues, System::Object ^ htmlAttributes);
public static Microsoft.AspNetCore.Html.IHtmlContent ActionLink (this Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper helper, string linkText, string actionName, string controllerName, object routeValues, object htmlAttributes);
static member ActionLink : Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper * string * string * string * obj * obj -> Microsoft.AspNetCore.Html.IHtmlContent
<Extension()>
Public Function ActionLink (helper As IHtmlHelper, linkText As String, actionName As String, controllerName As String, routeValues As Object, htmlAttributes As Object) As IHtmlContent

Parámetros

helper
IHtmlHelper

La IHtmlHelper instancia que extiende este método.

linkText
String

Texto interno del elemento delimitador. No debe ser null.

actionName
String

Nombre de la acción.

controllerName
String

El nombre del controlador.

routeValues
Object

que Object contiene los parámetros de una ruta. Los parámetros se recuperan mediante reflexión mediante el examen de las propiedades de Object. Normalmente se Object crea mediante la Object sintaxis del inicializador. Como alternativa, una IDictionary<TKey,TValue> instancia que contiene los parámetros de ruta.

htmlAttributes
Object

que Object contiene los atributos HTML del elemento . Como alternativa, una IDictionary<TKey,TValue> instancia de que contiene los atributos HTML.

Devoluciones

Nuevo IHtmlContent que contiene el elemento delimitador.

Se aplica a