IHtmlGenerator.GeneratePageLink Metoda

Definice

<> Vygeneruje prvek pro propojení s akcí.

public:
 Microsoft::AspNetCore::Mvc::Rendering::TagBuilder ^ GeneratePageLink(Microsoft::AspNetCore::Mvc::Rendering::ViewContext ^ viewContext, System::String ^ linkText, System::String ^ pageName, System::String ^ pageHandler, System::String ^ protocol, System::String ^ hostname, System::String ^ fragment, System::Object ^ routeValues, System::Object ^ htmlAttributes);
public Microsoft.AspNetCore.Mvc.Rendering.TagBuilder GeneratePageLink (Microsoft.AspNetCore.Mvc.Rendering.ViewContext viewContext, string linkText, string pageName, string pageHandler, string protocol, string hostname, string fragment, object routeValues, object htmlAttributes);
abstract member GeneratePageLink : Microsoft.AspNetCore.Mvc.Rendering.ViewContext * string * string * string * string * string * string * obj * obj -> Microsoft.AspNetCore.Mvc.Rendering.TagBuilder
Public Function GeneratePageLink (viewContext As ViewContext, linkText As String, pageName As String, pageHandler As String, protocol As String, hostname As String, fragment As String, routeValues As Object, htmlAttributes As Object) As TagBuilder

Parametry

viewContext
ViewContext

Instance ViewContext pro aktuální obor.

linkText
String

Text, který chcete vložit do elementu.

pageName
String

Název stránky

pageHandler
String

Obslužná rutina stránky.

protocol
String

Protokol (schéma) pro vygenerovaný odkaz.

hostname
String

Název hostitele pro vygenerovaný odkaz.

fragment
String

Fragment pro vygenerovaný odkaz

routeValues
Object

Obsahuje Object parametry pro trasu. Parametry se načítají reflexí prozkoumáním vlastností .Object Obvykle se vytváří Object pomocí Object syntaxe inicializátoru. IDictionary<TKey,TValue> Případně instance obsahující parametry trasy.

htmlAttributes
Object

Atribut Object HTML elementu obsahuje. Alternativně může IDictionary<TKey,TValue> instance obsahující atributy HTML.

Návraty

TagBuilder

Instance TagBuilder elementu<>.

Platí pro