Aracılığıyla paylaş


HtmlHelper.GenerateLink Yöntem

Tanım

Aşırı Yüklemeler

GenerateLink(RequestContext, RouteCollection, String, String, String, String, RouteValueDictionary, IDictionary<String,Object>)

Belirtilen eylem yöntemine bağlanan bir HTML bağlantısı öğesi (öğe) oluşturur.

GenerateLink(RequestContext, RouteCollection, String, String, String, String, String, String, String, RouteValueDictionary, IDictionary<String,Object>)

Belirtilen eylem yöntemine bağlanan bir HTML bağlayıcı öğesi (öğe) oluşturur ve kullanıcının iletişim protokolünün, konağın adını ve URL parçası belirtmesini sağlar.

GenerateLink(RequestContext, RouteCollection, String, String, String, String, RouteValueDictionary, IDictionary<String,Object>)

Belirtilen eylem yöntemine bağlanan bir HTML bağlantısı öğesi (öğe) oluşturur.

public static string GenerateLink(System.Web.Routing.RequestContext requestContext, System.Web.Routing.RouteCollection routeCollection, string linkText, string routeName, string actionName, string controllerName, System.Web.Routing.RouteValueDictionary routeValues, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member GenerateLink : System.Web.Routing.RequestContext * System.Web.Routing.RouteCollection * string * string * string * string * System.Web.Routing.RouteValueDictionary * System.Collections.Generic.IDictionary<string, obj> -> string
Public Shared Function GenerateLink (requestContext As RequestContext, routeCollection As RouteCollection, linkText As String, routeName As String, actionName As String, controllerName As String, routeValues As RouteValueDictionary, htmlAttributes As IDictionary(Of String, Object)) As String

Parametreler

requestContext
RequestContext

HTTP isteğinin bağlamı.

routeCollection
RouteCollection

URL yolları koleksiyonu.

linkText
String

Bağlantı için görüntülenecek metin başlık.

routeName
String

Sanal yol döndürmek için kullanılan yolun adı.

actionName
String

Eylem yönteminin adı.

controllerName
String

Denetleyicinin adı.

routeValues
RouteValueDictionary

Bir yol için parametreleri içeren bir nesne.

htmlAttributes
IDictionary<String,Object>

öğesinin HTML özniteliklerini içeren bir nesne.

Döndürülenler

Belirtilen eylem yöntemine bağlanan bir HTML öğesi.

Şunlara uygulanır

GenerateLink(RequestContext, RouteCollection, String, String, String, String, String, String, String, RouteValueDictionary, IDictionary<String,Object>)

Belirtilen eylem yöntemine bağlanan bir HTML bağlayıcı öğesi (öğe) oluşturur ve kullanıcının iletişim protokolünün, konağın adını ve URL parçası belirtmesini sağlar.

public static string GenerateLink(System.Web.Routing.RequestContext requestContext, System.Web.Routing.RouteCollection routeCollection, string linkText, string routeName, string actionName, string controllerName, string protocol, string hostName, string fragment, System.Web.Routing.RouteValueDictionary routeValues, System.Collections.Generic.IDictionary<string,object> htmlAttributes);
static member GenerateLink : System.Web.Routing.RequestContext * System.Web.Routing.RouteCollection * string * string * string * string * string * string * string * System.Web.Routing.RouteValueDictionary * System.Collections.Generic.IDictionary<string, obj> -> string
Public Shared Function GenerateLink (requestContext As RequestContext, routeCollection As RouteCollection, linkText As String, routeName As String, actionName As String, controllerName As String, protocol As String, hostName As String, fragment As String, routeValues As RouteValueDictionary, htmlAttributes As IDictionary(Of String, Object)) As String

Parametreler

requestContext
RequestContext

HTTP isteğinin bağlamı.

routeCollection
RouteCollection

URL yolları koleksiyonu.

linkText
String

Bağlantı için görüntülenecek metin başlık.

routeName
String

Sanal yol döndürmek için kullanılan yolun adı.

actionName
String

Eylem yönteminin adı.

controllerName
String

Denetleyicinin adı.

protocol
String

HTTP veya HTTPS gibi iletişim protokolü. Bu parametre null ise, protokol varsayılan olarak HTTP olarak ayarlanır.

hostName
String

Ana bilgisayarın adı.

fragment
String

Parça tanımlayıcısı.

routeValues
RouteValueDictionary

Bir yol için parametreleri içeren bir nesne.

htmlAttributes
IDictionary<String,Object>

öğesinin HTML özniteliklerini içeren bir nesne.

Döndürülenler

Belirtilen eylem yöntemine bağlanan bir HTML öğesi.

Şunlara uygulanır