HtmlHelperExtensions.ActionLink Method (HtmlHelper, String, 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 ActionLink(
    this HtmlHelper htmlHelper,
    string linkText,
    string actionName,
    string controllerName = null,
    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^ ActionLink(
    HtmlHelper^ htmlHelper,
    String^ linkText,
    String^ actionName,
    String^ controllerName = null,
    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 ActionLink : 
        htmlHelper:HtmlHelper *
        linkText:string *
        actionName:string *
        controllerName:string = null *
        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 ActionLink (
    htmlHelper As HtmlHelper,
    linkText As String,
    actionName As String,
    controllerName 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

Return Value

Type: System.Web.Mvc.MvcHtmlString

See Also

HtmlHelperExtensions Class
Microsoft.Web.Mvc.Html Namespace

Return to top