HtmlHelperExtensions.RouteLink Method (HtmlHelper, String, String, String, String, String, Object, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String)
Namespace: Microsoft.Web.Mvc.Html
Assembly: Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)
Syntax
public static MvcHtmlString RouteLink(
this HtmlHelper htmlHelper,
string linkText,
string routeName,
string protocol = null,
string hostName = null,
string fragment = null,
object routeValues = null,
string accessKey = null,
string charset = null,
string coords = null,
string cssClass = null,
string dir = null,
string hrefLang = null,
string id = null,
string lang = null,
string name = null,
string rel = null,
string rev = null,
string shape = null,
string style = null,
string target = null,
string title = null
)
public:
[ExtensionAttribute]
static MvcHtmlString^ RouteLink(
HtmlHelper^ htmlHelper,
String^ linkText,
String^ routeName,
String^ protocol = null,
String^ hostName = null,
String^ fragment = null,
Object^ routeValues = null,
String^ accessKey = null,
String^ charset = null,
String^ coords = null,
String^ cssClass = null,
String^ dir = null,
String^ hrefLang = null,
String^ id = null,
String^ lang = null,
String^ name = null,
String^ rel = null,
String^ rev = null,
String^ shape = null,
String^ style = null,
String^ target = null,
String^ title = null
)
static member RouteLink :
htmlHelper:HtmlHelper *
linkText:string *
routeName:string *
protocol:string = null *
hostName:string = null *
fragment:string = null *
routeValues:Object = null *
accessKey:string = null *
charset:string = null *
coords:string = null *
cssClass:string = null *
dir:string = null *
hrefLang:string = null *
id:string = null *
lang:string = null *
name:string = null *
rel:string = null *
rev:string = null *
shape:string = null *
style:string = null *
target:string = null *
title:string = null -> MvcHtmlString
<ExtensionAttribute>
Public Shared Function RouteLink (
htmlHelper As HtmlHelper,
linkText As String,
routeName As String,
protocol As String,
hostName As String,
fragment As String,
routeValues As Object,
accessKey As String,
charset As String,
coords As String,
cssClass As String,
dir As String,
hrefLang As String,
id As String,
lang As String,
name As String,
rel As String,
rev As String,
shape As String,
style As String,
target As String,
title As String
) As MvcHtmlString
Parameters
- htmlHelper
Type: System.Web.Mvc.HtmlHelper
- linkText
Type: System.String
- routeName
Type: System.String
- protocol
Type: System.String
- hostName
Type: System.String
- fragment
Type: System.String
- routeValues
Type: System.Object
- accessKey
Type: System.String
- charset
Type: System.String
- coords
Type: System.String
- cssClass
Type: System.String
- dir
Type: System.String
- hrefLang
Type: System.String
- id
Type: System.String
- lang
Type: System.String
- name
Type: System.String
- rel
Type: System.String
- rev
Type: System.String
- shape
Type: System.String
- style
Type: System.String
- target
Type: System.String
- title
Type: System.String
Return Value
Type: System.Web.Mvc.MvcHtmlString
See Also
HtmlHelperExtensions Class
Microsoft.Web.Mvc.Html Namespace
Return to top