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 | |
---|---|---|
ResourceLink(AjaxHelper, String, Object, AjaxOptions) | Generates a link to the resource controller, defaulting to the Retrieve action. |
|
ResourceLink(AjaxHelper, String, String, Object, AjaxOptions) | Generates a link to the resource controller, defaulting to the Retrieve action. |
|
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
AjaxHelperExtensions.ResourceLink Method (AjaxHelper, String, Object, AjaxOptions)
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
ajax
Type: System.Web.Mvc.AjaxHelperThe Ajax helper.
controllerName
Type: System.StringThe controller name.
routeValues
Type: System.ObjectAn 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.
ajaxOptions
Type: System.Web.Mvc.Ajax.AjaxOptionsAn object that provides options for the asynchronous request.
Return Value
Type: System.Web.Mvc.MvcHtmlString
A link to the resource controller.
Return to top
AjaxHelperExtensions.ResourceLink Method (AjaxHelper, String, String, Object, AjaxOptions)
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
ajax
Type: System.Web.Mvc.AjaxHelperThe Ajax helper.
controllerName
Type: System.StringThe controller name.
linkText
Type: System.StringThe link text.
routeValues
Type: System.ObjectAn 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.
ajaxOptions
Type: System.Web.Mvc.Ajax.AjaxOptionsAn object that provides options for the asynchronous request.
Return Value
Type: System.Web.Mvc.MvcHtmlString
A link to the resource controller.
Return to top
AjaxHelperExtensions.ResourceLink Method (AjaxHelper, String, String, Object, AjaxOptions, ActionType)
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
ajax
Type: System.Web.Mvc.AjaxHelperThe Ajax helper.
controllerName
Type: System.StringThe controller name.
linkText
Type: System.StringThe link text.
routeValues
Type: System.ObjectAn 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.
ajaxOptions
Type: System.Web.Mvc.Ajax.AjaxOptionsAn object that provides options for the asynchronous request.
actionType
Type: Microsoft.Web.Mvc.Resources.ActionTypeThe action type.
Return Value
Type: System.Web.Mvc.MvcHtmlString
A link to the resource controller.
Return to top