HtmlHelperLinkExtensions.ActionLink Méthode

Définition

Surcharges

ActionLink(IHtmlHelper, String, String)

Retourne un élément ancre (<a>) qui contient un chemin d’URL vers l’action spécifiée.

ActionLink(IHtmlHelper, String, String, Object)

Retourne un élément ancre (<a>) qui contient un chemin d’URL vers l’action spécifiée.

ActionLink(IHtmlHelper, String, String, String)

Retourne un élément ancre (<a>) qui contient un chemin d’URL vers l’action spécifiée.

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

Retourne un élément ancre (<a>) qui contient un chemin d’URL vers l’action spécifiée.

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

Retourne un élément ancre (<a>) qui contient un chemin d’URL vers l’action spécifiée.

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

Retourne un élément ancre (<a>) qui contient un chemin d’URL vers l’action spécifiée.

ActionLink(IHtmlHelper, String, String)

Retourne un élément ancre (<a>) qui contient un chemin d’URL vers l’action spécifiée.

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

Paramètres

helper
IHtmlHelper

La IHtmlHelper instance cette méthode s’étend.

linkText
String

Texte interne de l'élément d'ancrage. Ne doit pas être null.

actionName
String

Nom de l’action.

Retours

Nouveau IHtmlContent contenant l’élément anchor.

S’applique à

ActionLink(IHtmlHelper, String, String, Object)

Retourne un élément ancre (<a>) qui contient un chemin d’URL vers l’action spécifiée.

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

Paramètres

helper
IHtmlHelper

La IHtmlHelper instance cette méthode s’étend.

linkText
String

Texte interne de l'élément d'ancrage. Ne doit pas être null.

actionName
String

Nom de l’action.

routeValues
Object

Object qui contient les paramètres d’un itinéraire. Les paramètres sont récupérés par réflexion en examinant les propriétés de .Object Il Object est généralement créé à l’aide de Object la syntaxe d’initialiseur. Vous pouvez également utiliser une IDictionary<TKey,TValue> instance contenant les paramètres de route.

Retours

Nouveau IHtmlContent contenant l’élément anchor.

S’applique à

ActionLink(IHtmlHelper, String, String, String)

Retourne un élément ancre (<a>) qui contient un chemin d’URL vers l’action spécifiée.

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

Paramètres

helper
IHtmlHelper

La IHtmlHelper instance cette méthode s’étend.

linkText
String

Texte interne de l'élément d'ancrage. Ne doit pas être null.

actionName
String

Nom de l’action.

controllerName
String

Nom du contrôleur.

Retours

Nouveau IHtmlContent contenant l’élément anchor.

S’applique à

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

Retourne un élément ancre (<a>) qui contient un chemin d’URL vers l’action spécifiée.

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

Paramètres

helper
IHtmlHelper

La IHtmlHelper instance cette méthode s’étend.

linkText
String

Texte interne de l'élément d'ancrage. Ne doit pas être null.

actionName
String

Nom de l’action.

routeValues
Object

Object qui contient les paramètres d’un itinéraire. Les paramètres sont récupérés par réflexion en examinant les propriétés de .Object Il Object est généralement créé à l’aide de Object la syntaxe d’initialiseur. Vous pouvez également utiliser une IDictionary<TKey,TValue> instance contenant les paramètres de route.

htmlAttributes
Object

Object qui contient les attributs HTML de l’élément . IDictionary<TKey,TValue> Une instance contenant les attributs HTML.

Retours

Nouveau IHtmlContent contenant l’élément anchor.

S’applique à

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

Retourne un élément ancre (<a>) qui contient un chemin d’URL vers l’action spécifiée.

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

Paramètres

helper
IHtmlHelper

La IHtmlHelper instance cette méthode s’étend.

linkText
String

Texte interne de l'élément d'ancrage. Ne doit pas être null.

actionName
String

Nom de l’action.

controllerName
String

Nom du contrôleur.

routeValues
Object

Object qui contient les paramètres d’un itinéraire. Les paramètres sont récupérés par réflexion en examinant les propriétés de .Object Il Object est généralement créé à l’aide de Object la syntaxe d’initialiseur. Vous pouvez également utiliser une IDictionary<TKey,TValue> instance contenant les paramètres de route.

Retours

Nouveau IHtmlContent contenant l’élément anchor.

S’applique à

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

Retourne un élément ancre (<a>) qui contient un chemin d’URL vers l’action spécifiée.

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

Paramètres

helper
IHtmlHelper

La IHtmlHelper instance cette méthode s’étend.

linkText
String

Texte interne de l'élément d'ancrage. Ne doit pas être null.

actionName
String

Nom de l’action.

controllerName
String

Nom du contrôleur.

routeValues
Object

Object qui contient les paramètres d’un itinéraire. Les paramètres sont récupérés par réflexion en examinant les propriétés de .Object Il Object est généralement créé à l’aide de Object la syntaxe d’initialiseur. Vous pouvez également utiliser une IDictionary<TKey,TValue> instance contenant les paramètres de route.

htmlAttributes
Object

Object qui contient les attributs HTML de l’élément . IDictionary<TKey,TValue> Une instance contenant les attributs HTML.

Retours

Nouveau IHtmlContent contenant l’élément anchor.

S’applique à