Share via


AjaxHelperExtensions.ResourceLink Method

 

Generates a link to the resource controller.

Namespace:   Microsoft.Web.Mvc.Resources
Assembly:  Microsoft.Web.Mvc (in Microsoft.Web.Mvc.dll)

Overload List

Name Description
System_CAPS_pubmethodSystem_CAPS_static ResourceLink(AjaxHelper, String, Object, AjaxOptions)

Generates a link to the resource controller, defaulting to the Retrieve action.

System_CAPS_pubmethodSystem_CAPS_static ResourceLink(AjaxHelper, String, String, Object, AjaxOptions)

Generates a link to the resource controller, defaulting to the Retrieve action.

System_CAPS_pubmethodSystem_CAPS_static ResourceLink(AjaxHelper, String, String, Object, AjaxOptions, ActionType)

Generates a link to the resource controller.

See Also

AjaxHelperExtensions Class
Microsoft.Web.Mvc.Resources Namespace

Return to top

Generates a link to the resource controller, defaulting to the Retrieve action.

Syntax

public static MvcHtmlString ResourceLink(
    this AjaxHelper ajax,
    string controllerName,
    object routeValues,
    AjaxOptions ajaxOptions
)
public:
[ExtensionAttribute]
static MvcHtmlString^ ResourceLink(
    AjaxHelper^ ajax,
    String^ controllerName,
    Object^ routeValues,
    AjaxOptions^ ajaxOptions
)
static member ResourceLink : 
        ajax:AjaxHelper *
        controllerName:string *
        routeValues:Object *
        ajaxOptions:AjaxOptions -> MvcHtmlString
<ExtensionAttribute>
Public Shared Function ResourceLink (
    ajax As AjaxHelper,
    controllerName As String,
    routeValues As Object,
    ajaxOptions As AjaxOptions
) As MvcHtmlString

Parameters

  • routeValues
    Type: System.Object

    An object that contains the parameters for a route. The parameters are retrieved through reflection by examining the properties of the object. This object is typically created by using object initializer syntax.

Return Value

Type: System.Web.Mvc.MvcHtmlString

A link to the resource controller.

Return to top

Generates a link to the resource controller, defaulting to the Retrieve action.

Syntax

public static MvcHtmlString ResourceLink(
    this AjaxHelper ajax,
    string controllerName,
    string linkText,
    object routeValues,
    AjaxOptions ajaxOptions
)
public:
[ExtensionAttribute]
static MvcHtmlString^ ResourceLink(
    AjaxHelper^ ajax,
    String^ controllerName,
    String^ linkText,
    Object^ routeValues,
    AjaxOptions^ ajaxOptions
)
static member ResourceLink : 
        ajax:AjaxHelper *
        controllerName:string *
        linkText:string *
        routeValues:Object *
        ajaxOptions:AjaxOptions -> MvcHtmlString
<ExtensionAttribute>
Public Shared Function ResourceLink (
    ajax As AjaxHelper,
    controllerName As String,
    linkText As String,
    routeValues As Object,
    ajaxOptions As AjaxOptions
) As MvcHtmlString

Parameters

  • routeValues
    Type: System.Object

    An object that contains the parameters for a route. The parameters are retrieved through reflection by examining the properties of the object. This object is typically created by using object initializer syntax.

Return Value

Type: System.Web.Mvc.MvcHtmlString

A link to the resource controller.

Return to top

Generates a link to the resource controller.

Syntax

public static MvcHtmlString ResourceLink(
    this AjaxHelper ajax,
    string controllerName,
    string linkText,
    object routeValues,
    AjaxOptions ajaxOptions,
    ActionType actionType
)
public:
[ExtensionAttribute]
static MvcHtmlString^ ResourceLink(
    AjaxHelper^ ajax,
    String^ controllerName,
    String^ linkText,
    Object^ routeValues,
    AjaxOptions^ ajaxOptions,
    ActionType actionType
)
static member ResourceLink : 
        ajax:AjaxHelper *
        controllerName:string *
        linkText:string *
        routeValues:Object *
        ajaxOptions:AjaxOptions *
        actionType:ActionType -> MvcHtmlString
<ExtensionAttribute>
Public Shared Function ResourceLink (
    ajax As AjaxHelper,
    controllerName As String,
    linkText As String,
    routeValues As Object,
    ajaxOptions As AjaxOptions,
    actionType As ActionType
) As MvcHtmlString

Parameters

  • routeValues
    Type: System.Object

    An object that contains the parameters for a route. The parameters are retrieved through reflection by examining the properties of the object. This object is typically created by using object initializer syntax.

Return Value

Type: System.Web.Mvc.MvcHtmlString

A link to the resource controller.

Return to top