Export (0) Print
Expand All

LinkExtensions Class

Represents support for HTML links in an application.

System.Object
  System.Web.Mvc.Html.LinkExtensions

Namespace:  System.Web.Mvc.Html
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

public final class LinkExtensions

  NameDescription
Public methodStatic memberActionLink(HtmlHelper, String, String)Returns an anchor element (a element) for the specified link text and action.
Public methodStatic memberActionLink(HtmlHelper, String, String, Object)Returns an anchor element (a element) for the specified link text, action, and route values.
Public methodStatic memberActionLink(HtmlHelper, String, String, String)Returns an anchor element (a element) for the specified link text, action, and controller.
Public methodStatic memberActionLink(HtmlHelper, String, String, RouteValueDictionary)Returns an anchor element (a element) for the specified link text, action, and route values as a route value dictionary.
Public methodStatic memberActionLink(HtmlHelper, String, String, Object, Object)Returns an anchor element (a element) for the specified link text, action, route values, and HTML attributes.
Public methodStatic memberActionLink(HtmlHelper, String, String, RouteValueDictionary, IDictionary(String, Object))Returns an anchor element (a element) for the specified link text, action, route values as a route value dictionary, and HTML attributes as a dictionary.
Public methodStatic memberActionLink(HtmlHelper, String, String, String, Object, Object)Returns an anchor element (a element) for the specified link text, action, controller, route values, and HTML attributes.
Public methodStatic memberActionLink(HtmlHelper, String, String, String, RouteValueDictionary, IDictionary(String, Object))Returns an anchor element (a element) for the specified link text, action, controller, route values as a route value dictionary, and HTML attributes as a dictionary.
Public methodStatic memberActionLink(HtmlHelper, String, String, String, String, String, String, Object, Object)Returns an anchor element (a element) for the specified link text, action, controller, protocol, host name, URL fragment, route values, and HTML attributes.
Public methodStatic memberActionLink(HtmlHelper, String, String, String, String, String, String, RouteValueDictionary, IDictionary(String, Object))Returns an anchor element (a element) for the specified link text, action, controller, protocol, host name, URL fragment, route values as a route value dictionary, and HTML attributes as a dictionary.
Public methodStatic memberRouteLink(HtmlHelper, String, Object)Returns an anchor element (a element) that contains the virtual path of the specified action.
Public methodStatic memberRouteLink(HtmlHelper, String, String)Returns an anchor element (a element) that contains the virtual path of the specified action.
Public methodStatic memberRouteLink(HtmlHelper, String, RouteValueDictionary)Returns an anchor element (a element) that contains the virtual path of the specified action.
Public methodStatic memberRouteLink(HtmlHelper, String, Object, Object)Returns an anchor element (a element) that contains the virtual path of the specified action.
Public methodStatic memberRouteLink(HtmlHelper, String, String, Object)Returns an anchor element (a element) that contains the virtual path of the specified action.
Public methodStatic memberRouteLink(HtmlHelper, String, String, RouteValueDictionary)Returns an anchor element (a element) that contains the virtual path of the specified action.
Public methodStatic memberRouteLink(HtmlHelper, String, RouteValueDictionary, IDictionary(String, Object))Returns an anchor element (a element) that contains the virtual path of the specified action.
Public methodStatic memberRouteLink(HtmlHelper, String, String, Object, Object)Returns an anchor element (a element) that contains the virtual path of the specified action.
Public methodStatic memberRouteLink(HtmlHelper, String, String, RouteValueDictionary, IDictionary(String, Object))Returns an anchor element (a element) that contains the virtual path of the specified action.
Public methodStatic memberRouteLink(HtmlHelper, String, String, String, String, String, Object, Object)Returns an anchor element (a element) that contains the virtual path of the specified action.
Public methodStatic memberRouteLink(HtmlHelper, String, String, String, String, String, RouteValueDictionary, IDictionary(String, Object))Returns an anchor element (a element) that contains the virtual path of the specified action.
Top

The LinkExtensions class contains methods that extend the HtmlHelper class. Each extension method renders an HTML anchor element (a element). The ActionLink method renders an element that links to an action method. The RouteLink method renders an element that links to a URL based on a route. The URL can resolve to an action method, a file, a folder, or some other resource.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft