LinkExtensions.RouteLink Method
Namespace:
System.Web.Mvc.Html
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
LinkExtensions.RouteLink Method (HtmlHelper, String, Object)
public static MvcHtmlString RouteLink( this HtmlHelper htmlHelper, string linkText, object routeValues )
Parameters
- htmlHelper
- Type: System.Web.Mvc.HtmlHelper
- linkText
- Type: System.String
- routeValues
- Type: System.Object
Return Value
Type: System.Web.Mvc.MvcHtmlStringLinkExtensions.RouteLink Method (HtmlHelper, String, Object, Object)
public static MvcHtmlString RouteLink( this HtmlHelper htmlHelper, string linkText, object routeValues, object htmlAttributes )
Parameters
- htmlHelper
- Type: System.Web.Mvc.HtmlHelper
- linkText
- Type: System.String
- routeValues
- Type: System.Object
- htmlAttributes
- Type: System.Object
Return Value
Type: System.Web.Mvc.MvcHtmlStringLinkExtensions.RouteLink Method (HtmlHelper, String, RouteValueDictionary)
public static MvcHtmlString RouteLink( this HtmlHelper htmlHelper, string linkText, RouteValueDictionary routeValues )
Parameters
- htmlHelper
- Type: System.Web.Mvc.HtmlHelper
- linkText
- Type: System.String
- routeValues
- Type: System.Web.Routing.RouteValueDictionary
Return Value
Type: System.Web.Mvc.MvcHtmlStringLinkExtensions.RouteLink Method (HtmlHelper, String, RouteValueDictionary, IDictionary<String, Object>)
public static MvcHtmlString RouteLink( this HtmlHelper htmlHelper, string linkText, RouteValueDictionary routeValues, IDictionary<string, object> htmlAttributes )
Parameters
- htmlHelper
- Type: System.Web.Mvc.HtmlHelper
- linkText
- Type: System.String
- routeValues
- Type: System.Web.Routing.RouteValueDictionary
- htmlAttributes
- Type: System.Collections.Generic.IDictionary<String, Object>
Return Value
Type: System.Web.Mvc.MvcHtmlStringLinkExtensions.RouteLink Method (HtmlHelper, String, String)
public static MvcHtmlString RouteLink( this HtmlHelper htmlHelper, string linkText, string routeName )
Parameters
- htmlHelper
- Type: System.Web.Mvc.HtmlHelper
- linkText
- Type: System.String
- routeName
- Type: System.String
Return Value
Type: System.Web.Mvc.MvcHtmlStringLinkExtensions.RouteLink Method (HtmlHelper, String, String, Object)
public static MvcHtmlString RouteLink( this HtmlHelper htmlHelper, string linkText, string routeName, object routeValues )
Parameters
- htmlHelper
- Type: System.Web.Mvc.HtmlHelper
- linkText
- Type: System.String
- routeName
- Type: System.String
- routeValues
- Type: System.Object
Return Value
Type: System.Web.Mvc.MvcHtmlStringLinkExtensions.RouteLink Method (HtmlHelper, String, String, Object, Object)
public static MvcHtmlString RouteLink( this HtmlHelper htmlHelper, string linkText, string routeName, object routeValues, object htmlAttributes )
Parameters
- htmlHelper
- Type: System.Web.Mvc.HtmlHelper
- linkText
- Type: System.String
- routeName
- Type: System.String
- routeValues
- Type: System.Object
- htmlAttributes
- Type: System.Object
Return Value
Type: System.Web.Mvc.MvcHtmlStringLinkExtensions.RouteLink Method (HtmlHelper, String, String, RouteValueDictionary)
public static MvcHtmlString RouteLink( this HtmlHelper htmlHelper, string linkText, string routeName, RouteValueDictionary routeValues )
Parameters
- htmlHelper
- Type: System.Web.Mvc.HtmlHelper
- linkText
- Type: System.String
- routeName
- Type: System.String
- routeValues
- Type: System.Web.Routing.RouteValueDictionary
Return Value
Type: System.Web.Mvc.MvcHtmlStringLinkExtensions.RouteLink Method (HtmlHelper, String, String, RouteValueDictionary, IDictionary<String, Object>)
public static MvcHtmlString RouteLink( this HtmlHelper htmlHelper, string linkText, string routeName, RouteValueDictionary routeValues, IDictionary<string, object> htmlAttributes )
Parameters
- htmlHelper
- Type: System.Web.Mvc.HtmlHelper
- linkText
- Type: System.String
- routeName
- Type: System.String
- routeValues
- Type: System.Web.Routing.RouteValueDictionary
- htmlAttributes
- Type: System.Collections.Generic.IDictionary<String, Object>
Return Value
Type: System.Web.Mvc.MvcHtmlStringLinkExtensions.RouteLink Method (HtmlHelper, String, String, String, String, String, Object, Object)
public static MvcHtmlString RouteLink( this HtmlHelper htmlHelper, string linkText, string routeName, string protocol, string hostName, string fragment, object routeValues, object htmlAttributes )
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
- htmlAttributes
- Type: System.Object
Return Value
Type: System.Web.Mvc.MvcHtmlStringLinkExtensions.RouteLink Method (HtmlHelper, String, String, String, String, String, RouteValueDictionary, IDictionary<String, Object>)
public static MvcHtmlString RouteLink( this HtmlHelper htmlHelper, string linkText, string routeName, string protocol, string hostName, string fragment, RouteValueDictionary routeValues, IDictionary<string, object> htmlAttributes )
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.Web.Routing.RouteValueDictionary
- htmlAttributes
- Type: System.Collections.Generic.IDictionary<String, Object>
Return Value
Type: System.Web.Mvc.MvcHtmlString
Show:

